Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ” Animated CSS Hamburger

An interactive hamburger animation built with pure HTML and CSS. When hovered, each layer of the burger comes to life with unique animations.

โœจ Features

  • Pure CSS animations - no JavaScript required
  • Interactive hover effects for each burger layer
  • Sesame seed animations on the top bun
  • Wiggling patty and tomato
  • Moving lettuce texture
  • Dancing pickles
  • Dripping cheese effect
  • Responsive design for various screen sizes

๐ŸŽจ Styling

The burger uses CSS variables for easy color customization:

:root {
  --tomato: #f03a17;
  --pickles: #13a10e;
  --bun: #eba300;
  --lettuce: #13a10e;
  --cheese: #ffc83d;
  --darker-cheese: #ffba0a;
  --patty: #8e562e;
}

โš™๏ธ Getting Started

To view and interact with the animated burger button:

  1. Download the project files.
  2. Open the index.html file in Visual Studio Code.
  3. Use the Live Server extension in VS Code to view the project in your web browser.

๐Ÿ’ป Technologies Used

  • HTML5
  • CSS3 (with animations and keyframes)
  • Google Fonts (Roboto)

๐Ÿ” How It Works

The hamburger is structured as a button containing spans for each burger component:

  • Top and bottom bun layers
  • Lettuce with radial gradient texture
  • Tomato slice
  • Pickle slices
  • Cheese (with dripping animation)
  • Beef patty

Each layer has unique hover effects using CSS transitions and keyframe animations:

  • Sesame seeds rotate on the top bun
  • Lettuce texture moves horizontally
  • Tomato and patty wiggle
  • Pickles slide side to side
  • Cheese drips more prominently

๐Ÿ“ฑ Responsive Design

The burger adjusts for smaller screens with a media query for screens under 600px width.

๐ŸŽฎ Usage

Feel free to incorporate this animated burger into your own projects! It works great as a:

  • Fun interactive element
  • Loading animation
  • Menu button alternative
  • Design showcase

๐Ÿ”„ Animations

The burger button features various CSS animations that activate on hover and click events. Hereโ€™s an overview:

  • Bun: Animates with a rotation effect.
  • Lettuce: Animates with a sliding effect.
  • Tomato: Wriggles slightly.
  • Pickles: Switch positions.
  • Cheese: Rotates dynamically.
  • Patty: Wriggles slightly.

About

๐Ÿ” An animated hamburger built with html and css.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages