Kodza

Sidebar Menu

A side panel that slides in over the page, then big links rise one by one. A real dialog: focus kept inside, Escape to leave. No GSAP.

Navigation No dependencies menusidebardialognav Added Oct 2025
/anim/sidebar-toggle-menu/ 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.

Make my mobile menu a Kodza Sidebar Menu.

Not plugged in yet?
claude mcp add -t http kodza https://kodza.dev/api/mcp
Also in Codex, Cursor and VS Code.
kodza-sidebar-toggle-menu.html
<div class="kodza-sidebar">
  <button class="kodza-sidebar__toggle" type="button" aria-haspopup="dialog" aria-expanded="false">Menu</button>
  <dialog class="kodza-sidebar__panel" aria-label="Menu">
    <button class="kodza-sidebar__close" type="button">Close</button>
    <nav class="kodza-sidebar__nav" aria-label="Main">
      <a class="kodza-sidebar__link" href="#"><span class="kodza-sidebar__index">01</span><span class="kodza-sidebar__text">Work</span></a>
      <a class="kodza-sidebar__link" href="#"><span class="kodza-sidebar__index">02</span><span class="kodza-sidebar__text">Studio</span></a>
      <a class="kodza-sidebar__link" href="#"><span class="kodza-sidebar__index">03</span><span class="kodza-sidebar__text">Journal</span></a>
      <a class="kodza-sidebar__link" href="#"><span class="kodza-sidebar__index">04</span><span class="kodza-sidebar__text">Contact</span></a>
    </nav>
    <div class="kodza-sidebar__footer">
      <p class="kodza-sidebar__note">Made with too much coffee.</p>
      <p class="kodza-sidebar__socials"><a href="#">GitHub</a><a href="#">X</a><a href="#">RSS</a></p>
    </div>
  </dialog>
</div>

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 it, focus goes into the panelEnter/Space
In the panel
  • Next or previous control, the page behind is out of reachTab/⇧Tab
Anywhere, while it's open
  • Closes it, focus back on the buttonEsc

More like this

More in Navigation