Kodza

Trapdoor Menu

Press Menu and the page swings down on its hinge like a trapdoor, showing the menu underneath: links rise as the edge passes them, an image follows your pointer. Closing replays it backwards. No GSAP.

Navigation No dependencies menufullscreen3dnavdialog Added Oct 2026
/anim/trapdoor-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.

Add the Kodza Trapdoor Menu 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-trapdoor-menu.html
<div class="kodza-trapdoor">
  <button class="kodza-trapdoor__toggle" type="button" aria-haspopup="dialog" aria-expanded="false"><span class="kodza-trapdoor__lines" aria-hidden="true"></span>Menu</button>
  <div class="kodza-trapdoor__panel" role="dialog" aria-modal="true" aria-label="Menu" tabindex="-1" hidden>
    <div class="kodza-trapdoor__bar">
      <p class="kodza-trapdoor__label">5 doors, no stairs</p>
      <button class="kodza-trapdoor__close" type="button"><span class="kodza-trapdoor__cross" aria-hidden="true"></span>Close</button>
    </div>
    <div class="kodza-trapdoor__stage">
      <nav class="kodza-trapdoor__nav" aria-label="Main">
        <a class="kodza-trapdoor__link" href="#"><span class="kodza-trapdoor__index">01</span><span class="kodza-trapdoor__mask"><span class="kodza-trapdoor__word">Work</span></span><span class="kodza-trapdoor__meta">12 shipped</span></a>
        <a class="kodza-trapdoor__link" href="#"><span class="kodza-trapdoor__index">02</span><span class="kodza-trapdoor__mask"><span class="kodza-trapdoor__word">Studio</span></span><span class="kodza-trapdoor__meta">est. 2019</span></a>
        <a class="kodza-trapdoor__link" href="#"><span class="kodza-trapdoor__index">03</span><span class="kodza-trapdoor__mask"><span class="kodza-trapdoor__word">Journal</span></span><span class="kodza-trapdoor__meta">weekly-ish</span></a>
        <a class="kodza-trapdoor__link" href="#"><span class="kodza-trapdoor__index">04</span><span class="kodza-trapdoor__mask"><span class="kodza-trapdoor__word">Lab</span></span><span class="kodza-trapdoor__meta">may break</span></a>
        <a class="kodza-trapdoor__link" href="#"><span class="kodza-trapdoor__index">05</span><span class="kodza-trapdoor__mask"><span class="kodza-trapdoor__word">Contact</span></span><span class="kodza-trapdoor__meta">replies in a day</span></a>
      </nav>
      <div class="kodza-trapdoor__media" aria-hidden="true">
        <div class="kodza-trapdoor__figure">
          <div class="kodza-trapdoor__frame">
            <img class="kodza-trapdoor__image" src="https://kodza.dev/media/kz-columns-1400.webp" alt="" width="1120" height="1400" decoding="async">
            <img class="kodza-trapdoor__image" src="https://kodza.dev/media/kz-block-1400.webp" alt="" width="1120" height="1400" decoding="async">
            <img class="kodza-trapdoor__image" src="https://kodza.dev/media/kz-stack-1400.webp" alt="" width="1400" height="1050" decoding="async">
            <img class="kodza-trapdoor__image" src="https://kodza.dev/media/kz-float-1400.webp" alt="" width="1400" height="933" decoding="async">
            <img class="kodza-trapdoor__image" src="https://kodza.dev/media/kz-steps-1400.webp" alt="" width="1400" height="933" decoding="async">
          </div>
          <p class="kodza-trapdoor__caption"><span>display: grid</span><span>display: block</span><span>z-index: 9999</span><span>float: left</span><span>steps(5, end)</span></p>
        </div>
      </div>
      <div class="kodza-trapdoor__info">
        <p>Open for new work · Q1 2027</p>
        <p class="kodza-trapdoor__socials"><a href="#">GitHub</a><a href="#">X</a><a href="#">RSS</a></p>
        <p class="kodza-trapdoor__hint">Esc puts the floor back.</p>
      </div>
    </div>
  </div>
</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 on the current link, or the firstEnter/Space
In the menu
  • Next or previous link, round and round↓/↑
  • First or last linkHome/End
  • Stays inside the menu, round and roundTab/⇧Tab
  • Held back, the page behind stays putPage Up/Page Down
Anywhere, while it's open
  • Puts the page back, focus back on MenuEsc

More like this

More in Navigation