Spiral Gallery
- group .........
- Galleries and grids
- source ........
- https://ui.aryank.space/components/spiral-gallery
- markdown ......
- /lab/spiral-gallery.md
- human .........
- /lab/spiral-gallery
── WHAT_IT_IS ────────────────────────────────────────────────────────────────────────────────
A 3D helix of curved image tiles you scroll through. Tiles are bent into shallow arcs and stacked along a descending coil; the whole spiral idles with a slow rotation, picks up spin from scroll velocity, and tilts toward the cursor with eased parallax while the camera descends through it. A small facing shader brightens tiles as they turn to face you. Three.js + Lenis; owns its scroll container so it embeds anywhere.
── BEHAVIOUR ────────────────────────────────────────────────────────────────────────────────
* Tiles are bent geometry
Each tile is a small grid of vertices wrapped onto a cylinder radius, not a flat plane, so the images curve with the coil. The radius eases from wide at the top to tighter at the bottom as the helix descends.
* Scroll drives spin and descent
The spiral always rotates slowly; scroll velocity adds spin that decays, and scroll position eases the camera down the coil, so flicking the wheel spins it and holding a scroll walks you through.
* Facing brightens the image
A small shader compares each tile's normal to the view direction, so tiles turning to face you brighten and those edge-on fade toward white, giving the rotation depth without any scene lights.