Kodza

Media Expand

An image or a video in a rounded frame, set in from the edges, takes the full width as the scroll brings it to the middle of the screen. The corners square off, the caption rises, and it all reverses on the way back up.

Scroll No dependencies scrollimagevideoclip-pathexpandfull widthshowreellanding Images 16:9 · mobile 4:5 Added Nov 2026
/anim/media-expand/ 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 Media Expand 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-media-expand.html
<figure class="kodza-media-expand" data-kodza-media-expand>
  <div class="kodza-media-expand__frame">
    <img src="https://kodza.dev/media/kz-gap-1400.webp" srcset="https://kodza.dev/media/kz-gap-1400.webp 1400w, https://kodza.dev/media/kz-gap-2400.webp 2400w" sizes="(max-width: 559px) 300vw, 150vw" alt="A long concrete wall split down the middle, a low sun pouring a band of light through the slit" width="1400" height="583" loading="lazy">
  </div>
  <figcaption class="kodza-media-expand__caption">
    <span class="kodza-media-expand__label">Case 07 — Étretat, 2026</span>
    <span class="kodza-media-expand__title">Less deck. More building.</span>
  </figcaption>
</figure>

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 Scroll