CSS Scroll-Driven Multi-Stage Comparator

A multi-stage image comparator driven by scroll position using CSS scroll-timeline and animation-range. The system uses sibling-index() and sibling-count() to calculate layer timing and stacking order automatically - add or remove image layers and the CSS recalculates z-index, clip-path windows, and divider synchronization without manual class numbering.

The percentage counter is calculated in CSS using @property with scroll-driven animations. JavaScript handles section offset measurement, percentage display formatting, velocity-based wheel and touchpad smoothing, and interactive stage navigation with click-to-jump indicators.

Note: Images generated with the "thing" (AI) and curated by @me as part of The Beauty of Scrambled Prompts and Tiny Worlds Accidents.

Scroll down ↓

Stage 1
Stage 1

Quiet Stone

— Heat and stillness

Stage 2
Stage 2

Storm Break

— Cracks under pressure

Stage 3
Stage 3

Snow Keep

— Silence taking over

Stage 4
Stage 4

Root Hold

— Time growing back

Scroll down ↓

Stage 1
Stage 1

Sun House

— Quiet heat

Stage 2
Stage 2

Rain Siege

— Rough weather

Stage 3
Stage 3

Fault Line

— Breaking point

Stage 4
Stage 4

White Surge

— Carried away

Scroll up ↑