Kodza

Before / After

Two pictures in one frame and a handle between them: drag it, click and it glides, or use the arrow keys. It nudges once when first seen; the labels step aside.

Media No dependencies comparesliderimagedark mode Added Oct 2026
/anim/before-after/ 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.

Compare my old and new homepage with a Kodza Before / After.

Not plugged in yet?
claude mcp add -t http kodza https://kodza.dev/api/mcp
Also in Codex, Cursor and VS Code.
kodza-before-after.html
<div class="kodza-compare">
  <img class="kodza-compare__before" src="https://kodza.dev/media/kz-columns-1400.webp" alt="The columns in daylight" width="1120" height="1400" />
  <div class="kodza-compare__after"><img src="https://kodza.dev/media/kz-columns-dark-1400.webp" alt="The same columns in dark mode" width="1120" height="1400" /></div>
  <span class="kodza-compare__tag">Light</span>
  <span class="kodza-compare__tag kodza-compare__tag--after">Dark</span>
  <span class="kodza-compare__handle" aria-hidden="true"><svg viewBox="0 0 24 24"><path d="M9 7l-5 5 5 5M15 7l5 5-5 5" /></svg></span>
  <input class="kodza-compare__range" type="range" min="0" max="100" value="50" step="1" aria-label="How much of the dark version to show" />
</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 slider
  • Slides the divider right by 1%→/↑
  • Slides the divider left by 1%←/↓
  • Slides it 10% right or leftPage Up/Page Down
  • Jumps to the far left or the far rightHome/End

More like this

More in Media