BLACK FRIDAY: 50% OFF all Pro plans Code: BLACKFRIDAY50
Pro from $10 a year or $30 lifetime, no code needed: Code: BLACKFRIDAY50
Ends Cyber Monday, 30 Nov. Lock in the price today. Code: BLACKFRIDAY50
Get 50% Off
Guide

Animated Hamburger Icon Free

How to set up and style the Animated Hamburger Icon widget in Elementor.

Animated Hamburger Icon is a menu button whose three lines turn into a cross, an arrow or a minus when clicked. It can open and close any section, container or menu on the page by its CSS ID or class, so you can build your own mobile menu or off canvas panel with Elementor.

Part of: Bright Addons (free).

Set it up

  1. Build the element the icon should open, for example a container, and give it a CSS ID such as main-menu in its Advanced tab.

  2. Drag Animated Hamburger Icon onto the page and pick an Animation.

  3. In Click Action, keep On Click set to Open and close an element and type #main-menu in Element to Open (CSS Selector).

  4. Choose whether to Hide the Element Until Opened, Stop Page Scrolling While Open and close on outside or link clicks.

  5. Add a Label and a Label When Open if you want text next to the icon.

  6. Style the lines, the button and the label in the Style tab. Turn on Show Open State in the Editor to style the open icon.

Content options

Icon

Option What it does
Animation How the three lines change when the icon is clicked.
Show Open State in the Editor Shows the open icon in the editor only, to style it. Visitors always see the closed icon first.
Label Optional text next to the icon.
Label When Open The label text while the element is open.
Label Position Puts the label left or right of the icon.
Screen Reader Text (Open) What screen readers announce before the element is opened.
Screen Reader Text (Close) What screen readers announce while it is open.
Alignment Aligns the icon left, center or right, per device.

Click Action

Option What it does
On Click Open and close an element, Go to a link, or Only animate.
Element to Open (CSS Selector) The ID or class of the element to open, for example #main-menu or .mobile-panel.
Class Added When Open The class the element gets while open, is-open by default, for your own CSS.
Hide the Element Until Opened Hides the element on page load and shows it with a fade when opened.
Stop Page Scrolling While Open Stops the page behind from scrolling while the element is open.
Close on Click Outside Closes the element when the visitor clicks anywhere else.
Close When a Link Inside Is Clicked Closes it when a link inside the element is clicked, handy for one page menus.
Link Where the icon leads when On Click is Go to a link.
Bright Addons Pro

Like this free widget? Get 90+ more with Pro

Pro adds 98 widgets, 10 extensions, a Theme Builder and 32 dynamic tags, and keeps every free widget. From $10 a year, with a 14-day money-back guarantee.

Style options

These sections are in the Style tab.

  • Lines

    width, thickness, gap between lines, middle line width, line roundness, animation duration, and colors for normal, hover and open.

  • Button

    padding, background for normal, hover and open, border, border radius and box shadow.

  • Label

    typography, color, color when open and the gap between the icon and the label (shown when a label is set).

Tips

  • In the editor the element stays visible so you can edit it. It is hidden for visitors until the icon is clicked.

  • Escape always closes an open element and moves focus back to the icon.

  • Several icons with the same element to open show the same state, so an open icon in the header and a close icon in the panel stay in step.

  • With On Click set to Go to a link the icon simply opens the link, so the open animation is not shown.

Questions and answers

Which element can it open?

Any element on the same page: a container, a section, a column or a widget. Give it a CSS ID or class in its Advanced tab and type that selector in Element to Open (CSS Selector).

Can I use it with my own CSS?

Yes. Turn off Hide the Element Until Opened and style the element with the class in Class Added When Open, is-open by default.

Is it accessible?

Yes. It is a real button with an expanded state and screen reader text for open and close, and it works with the keyboard.

Can it open a Nav Menu?

Yes. Put the Nav Menu widget in a container, give the container an ID and let the icon open it.

Need more help?

Check the troubleshooting guide, or contact support with the page address and what you expected to happen.

Troubleshooting guide
All guides