Kodza

Burger Button

A menu button: the lines meet, then cross, and Menu rolls to Close at a fixed width. It follows aria-expanded and fires kodza:burger, so it drives the menu you already have.

Navigation No dependencies burgerhamburgermenutogglebuttonmorph Added Oct 2026
/anim/burger-button/ GitHub Fullscreen

With your AI

Just ask.

Say it to your AI. It gets the exact code below, not its best guess, and knows where it goes.

Add the Kodza Burger Button to my page.

Not plugged in yet?
claude mcp add -t http kodza https://kodza.dev/api/mcp
Also in Codex, Cursor and VS Code.
kodza-burger-button.html
<button class="kodza-burger" type="button" aria-expanded="false">
  <span class="kodza-burger__lines" aria-hidden="true"></span>
  <span class="kodza-burger__label"><span class="kodza-burger__word">Menu</span><span class="kodza-burger__word" aria-hidden="true">Close</span></span>
</button>

<button class="kodza-burger kodza-burger--round kodza-burger--three" type="button" aria-expanded="false" aria-label="Menu">
  <span class="kodza-burger__lines" aria-hidden="true"></span>
</button>

<button class="kodza-burger kodza-burger--bare" type="button" aria-expanded="false">
  <span class="kodza-burger__label"><span class="kodza-burger__word">Index</span><span class="kodza-burger__word" aria-hidden="true">Close</span></span>
  <span class="kodza-burger__lines" aria-hidden="true"></span>
</button>

Checked

Checked before you paste.

Robots poked at it before you did. Every component goes through the same checks, and again each time it changes.

What ranLast run
Accessibilityaxe-core 4.10.2: the WCAG 2.1 A and AA rules, plus best practices. 0 issues
KeyboardThe Tab key gets there, and the focus ring shows when it does. Passed
Reduced motionTurn on reduced motion and what moved just appears. Nothing loops. Passed
Light and darkThe same checks on both themes, contrast included. Passed
WordPressPasted into Twenty Twenty-Five, Twenty Twenty-One, Astra, Blocksy, GeneratePress, Hello Elementor, Kadence and OceanWP. Nothing to flag. 8 / 8 themes
Robots checked this. A human with VoiceOver hasn't yet.
KeyboardPress them in the preview
On the button
  • Opens or closes, the lines cross or partEnter/Space
While it is open
  • Closes, and brings the focus back from the menuEsc

More like this

More in Navigation