Frosted Plate Carousel
- group .........
- Sliders and carousels
- recording .....
- https://s4xw77gvirailb62.public.blob.vercel-storage.com/lab/frosted-plate-carousel.mp4
- source ........
- https://ui.aryank.space/components/frosted-plate-carousel
- markdown ......
- /lab/frosted-plate-carousel.md
- human .........
- /lab/frosted-plate-carousel
── WHAT_IT_IS ────────────────────────────────────────────────────────────────────────────────
A wrapping diagonal of thin image plates. Each plate is a 0.0175-thick box whose cover-fit UVs mix a sharp texture into a 64px blur across a 0.15 UV-edge smoothstep, which is the glass. X wraps on a single scroll number. Z is -X times the depth multiplier, so the row recedes on a diagonal at -PI/6. Wheel and drag shift that scroll number; hover slides the inner group; click eases rotation Y to 0, recenters X, dollies the camera from z=35 to 30, and hides the other plates. Escape or a second click reverses the same tweens. Three.js with GSAP.
── BEHAVIOUR ────────────────────────────────────────────────────────────────────────────────
* The glass is an edge mix, not transmission
Each plate samples a sharp texture and a 64px blur through the same cover-fit UV. A 0.15 UV-edge smoothstep fades the sharp sample into the blur, and the blur's alpha is 0.75. That mix is the frost. There is no MeshPhysical glass.
* Z is slaved to X
A single wrapped X puts every plate on a looping line. Z is -X times 1.5 times the viewport aspect on desktop, or -X times 6 on portrait, so the row recedes on a diagonal instead of orbiting a ring. Rotation Y stays at -PI/6 until a click eases it to 0.
* Click freezes the wrap
While a plate is focused the wrap loop stops writing positions, which is what lets the GSAP tweens own X, Z, and rotation. Other plates hide by index. Escape or a second click runs the same tweens in reverse, then the wrap loop starts again.