Image Reveal
- group .........
- Galleries and grids
- source ........
- https://ui.aryank.space/components/image-reveal
- markdown ......
- /lab/image-reveal.md
- human .........
- /lab/image-reveal
── WHAT_IT_IS ────────────────────────────────────────────────────────────────────────────────
A scroll-powered stack of images that dissolve into each other: a clip-path wipes each frame away to expose the next, and a band of randomized ASCII characters scatters across the seam as it travels. Pinned GSAP ScrollTrigger with Lenis; owns its scroll container so it embeds anywhere.
── BEHAVIOUR ────────────────────────────────────────────────────────────────────────────────
* Owns its scroll
By default it pins inside its own scroll container (custom ScrollTrigger scroller + Lenis wrapper), so it embeds in a bounded box. Pass embedded={false} to drive it from the window instead.
* Decode band
The dissolve is a density field: a solid core at the seam scattering to noise at the edges, gated per-cell by a stable hash so the static looks organic instead of uniform.
* Clip, not crossfade
Each frame is wiped with a polygon clip-path rather than faded, so the transition has a hard moving edge — the band rides exactly that edge.