Skip to content

mirayatech/animated-hamburger-yummy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 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

  1. Clone this repository
  2. Open index.html in your browser
  3. Hover over the burger to see the animations

๐Ÿ’ป 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

๐Ÿ“ License

MIT License - feel free to use and modify for your own projects.

About

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

Topics

Resources

Stars

Watchers

Forks