Scroll Wave Gallery
- group .........
- Galleries and grids
- source ........
- https://ui.aryank.space/components/scroll-wave-gallery
- markdown ......
- /lab/scroll-wave-gallery.md
- human .........
- /lab/scroll-wave-gallery
── WHAT_IT_IS ────────────────────────────────────────────────────────────────────────────────
A vertical column of photographs that sway as they scroll. Each frame rides a sum of three sine waves, a slow base swing, a faster flow, and a fine detail jitter, drifting left and right while its clip-path pinches inward at the center of the viewport. The last quarter of the set shrinks for a sense of recession. Per-image GSAP ScrollTriggers with Lenis; owns its scroll container so it embeds anywhere.
── BEHAVIOUR ────────────────────────────────────────────────────────────────────────────────
* Three waves, one drift
Each frame's horizontal offset is the sum of a slow base swing, a faster flow, and a fine detail jitter, all keyed to the image's index and its scroll progress, so the column sways like a loose ribbon instead of a rigid grid.
* Pinch at the crossing
The clip-path insets from both edges in proportion to distance from the viewport center, squared, so a frame is widest as it passes the middle and clipped to a sliver at the top and bottom of its travel.
* Owns its scroll
By default it runs a Lenis-smoothed scroll inside its own container with per-image ScrollTriggers, so it embeds in a bounded box. Pass embedded={false} to drive it from the window scroll.