StealThis .dev

Photography — Before After

A gallery-dark retouch comparison widget with a draggable divider that wipes between a raw and edited frame. Grab the handle with mouse, touch, or keyboard to reveal how a grade transforms the shot. Uppercase RAW and EDITED chips fade in and out as you drag, a thumbnail strip swaps subjects, and a snap-to-center control resets the split cleanly.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

A full-bleed before/after comparison built for retouchers. Two stacked frames — the untouched RAW capture and the finished EDIT — sit under a draggable vertical divider. Dragging the round handle wipes the top image away to reveal the graded version beneath, so clients can see exactly what a color pass, dodge-and-burn, or sky replacement bought them. The split is driven by pointer events, so it responds identically to mouse and touch, and the handle is a real focusable control you can nudge with the arrow keys.

Thin uppercase RAW and EDITED chips anchor each corner and brighten as their side of the frame grows, giving instant feedback about which version you are looking at. A thumbnail strip below the stage swaps between several fictional shoots — a portrait, a landscape, and a product still — each with its own before and after treatment, while a live percentage readout and a snap-to-50 reset button keep the comparison precise.

The layout is dark, generous, and image-first: a Fraunces display serif for the title, Inter for everything else, and hairline borders that keep the chrome out of the way of the photographs. It collapses gracefully to a single-column layout under 520px, keeps the handle large enough to grab on touch screens, and preserves visible focus rings throughout.