Kodza

Staggered Horizontal Menu

A button that lets its links out one by one, nearest first, and calls them back in reverse. Its label rolls to "Close". No GSAP.

Navigation No dependencies menustaggernavtoggle Added Oct 2025
/anim/menu-horizontal-stagger-reverse/ 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.

Fold my header links into a Kodza Staggered Horizontal Menu.

Not plugged in yet?
claude mcp add -t http kodza https://kodza.dev/api/mcp
Also in Codex, Cursor and VS Code.
kodza-menu-horizontal-stagger-reverse.html
<nav class="kodza-stagger-menu" aria-label="Main">
  <ul class="kodza-stagger-menu__links">
    <li><a class="kodza-stagger-menu__link" href="#">Work</a></li>
    <li><a class="kodza-stagger-menu__link" href="#">Studio</a></li>
    <li><a class="kodza-stagger-menu__link" href="#">Journal</a></li>
    <li><a class="kodza-stagger-menu__link" href="#">Contact</a></li>
  </ul>
  <button class="kodza-stagger-menu__toggle" type="button" aria-expanded="false">
    <span class="kodza-stagger-menu__label" aria-hidden="true"><span>Menu</span><span>Close</span></span>
    <span class="kodza-stagger-menu__sr">Menu</span>
  </button>
</nav>

<nav class="kodza-stagger-menu kodza-stagger-menu--right" aria-label="Docs">
  <ul class="kodza-stagger-menu__links">
    <li><a class="kodza-stagger-menu__link" href="#">Install</a></li>
    <li><a class="kodza-stagger-menu__link" href="#">Customize</a></li>
    <li><a class="kodza-stagger-menu__link" href="#">Ship</a></li>
    <li><a class="kodza-stagger-menu__link" href="#">FAQ</a></li>
  </ul>
  <button class="kodza-stagger-menu__toggle" type="button" aria-expanded="false">
    <span class="kodza-stagger-menu__label" aria-hidden="true"><span>Docs</span><span>Close</span></span>
    <span class="kodza-stagger-menu__sr">Docs</span>
  </button>
</nav>

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 linksEnter/Space
On the button or a link, while it's open
  • Closes it, focus back on the buttonEsc

More like this

More in Navigation