Kodza

Hero Rotate

A studio hero whose headline changes one word at a time: the next word rolls up into place while a matching picture opens over the last one, in the same stroke. A ring around the pause button shows the time left.

Hero No dependencies herosectionlandingentrancerotating-textslideshowimage Added Oct 2026
/anim/hero-rotate/ 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 Hero Rotate 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-hero-rotate.html
<section class="kodza-hero-rotate" data-interval="3600">
  <div class="kodza-hero-rotate__inner">
    <div class="kodza-hero-rotate__head">
      <p class="kodza-hero-rotate__eyebrow"><span class="kodza-hero-rotate__rise">Independent studio · Le Havre, since 2019</span></p>
      <h1 class="kodza-hero-rotate__title"><span class="kodza-hero-rotate__line"><span class="kodza-hero-rotate__rise">We build <span class="kodza-hero-rotate__words"><span>sites</span><span>stores</span><span>apps</span><span>docs</span></span></span></span> <span class="kodza-hero-rotate__line"><span class="kodza-hero-rotate__rise">that ship.</span></span></h1>
    </div>
    <div class="kodza-hero-rotate__body">
      <p class="kodza-hero-rotate__lead">Four people, no account managers. You talk to whoever writes the code, and it goes live when we said it would.</p>
      <div class="kodza-hero-rotate__actions">
        <a class="kodza-hero-rotate__button kodza-hero-rotate__button--ink" href="#">See the work<svg class="kodza-hero-rotate__arrow" viewBox="0 0 16 16" aria-hidden="true"><path d="M2.5 8h10.5M9 3.5 13.5 8 9 12.5" /></svg></a>
        <a class="kodza-hero-rotate__button kodza-hero-rotate__button--soft" href="#">Book a call</a>
      </div>
    </div>
    <figure class="kodza-hero-rotate__media">
      <div class="kodza-hero-rotate__frame">
        <div class="kodza-hero-rotate__slide"><div class="kodza-hero-rotate__curtain"><div class="kodza-hero-rotate__hold"><img src="https://kodza.dev/media/kz-steps-1400.webp" alt="A concrete staircase climbing to the right under a flat light" width="1400" height="933" /></div></div></div>
        <div class="kodza-hero-rotate__slide"><div class="kodza-hero-rotate__curtain"><div class="kodza-hero-rotate__hold"><img src="https://kodza.dev/media/kz-stack-1400.webp" alt="Concrete slabs stacked in a leaning pile" width="1400" height="1050" loading="lazy" /></div></div></div>
        <div class="kodza-hero-rotate__slide"><div class="kodza-hero-rotate__curtain"><div class="kodza-hero-rotate__hold"><img src="https://kodza.dev/media/kz-float-1400.webp" alt="A concrete block floating above its own shadow" width="1400" height="933" loading="lazy" /></div></div></div>
        <div class="kodza-hero-rotate__slide"><div class="kodza-hero-rotate__curtain"><div class="kodza-hero-rotate__hold"><img src="https://kodza.dev/media/kz-arch-1400.webp" alt="A concrete wall with a round-topped opening, sunlight pouring through it" width="1400" height="1400" loading="lazy" /></div></div></div>
      </div>
      <figcaption class="kodza-hero-rotate__caption">
        <span class="kodza-hero-rotate__count"><span class="kodza-hero-rotate__index"><span>01</span></span> / 04</span>
        <button class="kodza-hero-rotate__pause" type="button" aria-pressed="false" aria-label="Pause the words"><svg class="kodza-hero-rotate__ring" viewBox="0 0 36 36" aria-hidden="true"><circle cx="18" cy="18" r="17" /><circle class="kodza-hero-rotate__progress" cx="18" cy="18" r="17" pathLength="100" /></svg><svg class="kodza-hero-rotate__icon" viewBox="0 0 16 16" aria-hidden="true"><path class="kodza-hero-rotate__bars" d="M5.5 4v8M10.5 4v8" /><path class="kodza-hero-rotate__play" d="M5.5 3.8v8.4L12 8z" /></svg></button>
      </figcaption>
    </figure>
  </div>
</section>

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 pause button
  • Pauses the words and pictures, or starts them againEnter/Space

More like this

More in Hero