vibran

Hamburger menu toggle

Portuguese name: Menu hambúrguer que vira X

A hamburger menu toggle. The three bars merge into an X on click. The button toggles aria-expanded, which you use to open and close your own menu.

Preview of Hamburger menu toggle running live
Copy the promptAdjust colors and speed

When to use it

The mobile menu button for almost any site. It only toggles aria-expanded; opening and closing the menu is up to you (it pairs well with the drawer). Set --icone-menu-cor for contrast against the header, and update the aria-label with the state.

How to add it to your site

  1. Copy the prompt in the gallery. It comes with the effect's name and the full code. The prompt text is written in Portuguese, and AI builders handle that fine.
  2. Paste it into your AI: Lovable, Claude, Cursor, Bolt or v0.
  3. Done: the AI adds the effect to your project, just like you saw it here.

Use it in HTML

The effect is plain JavaScript, no library. Just put the data-efeito attribute on the element:

<button data-efeito="icone-menu" aria-label="Abrir menu"></button>

More icons effects

All 6 icons effects →