Hamburger Menu Icons — Animated CSS Burger Buttons

Choose from 16 animated hamburger menus that turn into a cross, arrow or minus. Set the size, thickness, color and speed, choose px or rem, then copy accessible HTML, CSS and JavaScript or paste the icon into Webflow.

Updated

Hover an icon to see it open, and click a tile to select it. The large preview opens and closes by itself.

Your data never leaves your computer. All processing happens 100% locally in your browser.

How to use the Hamburger Menu Icons

  1. Hover an icon to see it open, or tick Show open state to see them all open. Click the one you like.
  2. Set the width, thickness, gap, color and speed. Every icon updates live.
  3. Copy the CSS, HTML and JS, or use Copy all for one block.
  4. For Webflow, press Copy to Webflow and paste into the Designer with Ctrl/⌘+V.

A menu button everyone can use

Each icon is a real <button>, not a clickable div, so it works with a keyboard and screen readers out of the box.

  • aria-expanded tells assistive tech whether the menu is open, and the CSS uses the same attribute to animate. One source of truth.
  • aria-label names the button, since it has no visible text.
  • Touch target: the padding keeps the clickable area at least 44 pixels square.
  • Reduced motion turns the animation off for visitors who ask for less movement.

Connecting it to your menu

The small script flips aria-expanded on click. To show your menu, add aria-controls="menu" and a rule such as .burger[aria-expanded="true"] ~ #menu { display: block; }, or toggle a class on the menu in the same click handler.

In Webflow, Copy to Webflow pastes an Embed with the icon, styles and script. To open a Webflow navbar with it, put the Embed inside the navbar’s Menu Button element. Related: CSS Button Styles, CSS Hover Animation Generator, CSS Loader Generator.

Also searched as: hamburger menu icon, hamburger menu animation, animated burger menu css, css hamburger menu, menu icon animation, burger icon to x, webflow hamburger menu, hamburger menu css.

Tools that pair well with the Hamburger Menu Icons

Frequently asked questions

How do I make a hamburger menu turn into an X?
Stack three lines, then when the button is open rotate the top and bottom lines 45 degrees in opposite directions and hide the middle one. Pick the Cross style to get the code.
Do I need JavaScript for a hamburger menu?
A few lines, to flip aria-expanded on click so screen readers know the state. The animation itself is pure CSS.
How do I use this in a Webflow navbar?
Press Copy to Webflow and paste the Embed inside the navbar’s Menu Button element, removing the default icon. Webflow’s navbar still opens the menu when clicked.
Can I use these icons in commercial projects?
Yes. They’re free for personal and client work, with no attribution needed.
Can I install Hamburger Menu Icons as a web app and use it offline?
Yes. Hamburger Menu Icons is an installable web app (PWA) — installed from your browser, not downloaded from an app store. Click Install app at the top of this page in Chrome or Edge (Windows, macOS, Linux, ChromeOS) or on Android, use Share → Add to Home Screen on iPhone and iPad, or File → Add to Dock in Safari 17+ on a Mac. It then opens in its own window with its own icon, and because it runs entirely in your browser it keeps working offline. Firefox on desktop can’t install web apps. How installing works.

Related tools