Kodza

Expandable Card

A row of cards where one is always open: click another and it widens while the others step back. Stacked on small screens.

Cards No dependencies cardaccordionexpandclick Added Oct 2025
/anim/expandable-card/ 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.

Show my services as a row of Kodza Expandable Cards.

Not plugged in yet?
claude mcp add -t http kodza https://kodza.dev/api/mcp
Also in Codex, Cursor and VS Code.
kodza-expandable-card.html
<div class="kodza-expand">
  <article class="kodza-expand__card is-open">
    <h3 class="kodza-expand__heading">
      <button class="kodza-expand__toggle" type="button" aria-expanded="true">
        <span class="kodza-expand__index">01</span>
        <span class="kodza-expand__title">Install</span>
      </button>
    </h3>
    <div class="kodza-expand__panel">
      <p>One file, no npm, no build step. Copy it, paste it, refresh. That's the whole tutorial.</p>
    </div>
  </article>
  <article class="kodza-expand__card">
    <h3 class="kodza-expand__heading">
      <button class="kodza-expand__toggle" type="button" aria-expanded="false">
        <span class="kodza-expand__index">02</span>
        <span class="kodza-expand__title">Tweak</span>
      </button>
    </h3>
    <div class="kodza-expand__panel">
      <p>Every color, size and timing is a CSS variable. Rebrand it in thirty seconds, no fork needed.</p>
    </div>
  </article>
  <article class="kodza-expand__card">
    <h3 class="kodza-expand__heading">
      <button class="kodza-expand__toggle" type="button" aria-expanded="false">
        <span class="kodza-expand__index">03</span>
        <span class="kodza-expand__title">Ship</span>
      </button>
    </h3>
    <div class="kodza-expand__panel">
      <p>It works in WordPress, Webflow or a plain HTML page. Then go home early.</p>
    </div>
  </article>
</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.

More like this

More in Cards