Flying Cube Scroll
- group .........
- 3D and WebGL scenes
- source ........
- https://ui.aryank.space/components/flying-cube-scroll
- markdown ......
- /lab/flying-cube-scroll.md
- human .........
- /lab/flying-cube-scroll
── WHAT_IT_IS ────────────────────────────────────────────────────────────────────────────────
Six CSS cubes flying in from thirty thousand pixels away and settling into a spread. Every face is a real image on a preserve-3d box, so the cubes are genuinely dimensional rather than pre-rendered. Position, three rotations, and Z are each interpolated per cube across the first half of the pin, and two keep spinning a further half turn in the second. The logo blurs out, the opening headline scales and blurs away, and a second block resolves once the cubes land.
── BEHAVIOUR ────────────────────────────────────────────────────────────────────────────────
* Real CSS cubes, six images each
Every cube is a preserve-3d box with six faces translated and rotated into place, each carrying its own photograph, so the cubes have genuine volume and show different pictures as they tumble.
* Two phases on one pin
All six cubes fly in across the first half of the scroll, then two of them keep rotating an extra half turn across the second, so the arrangement keeps developing after it has apparently settled.
* Copy hands off through blur
The opening headline scales up and blurs out while the second resolves from blurred and undersized, so the two never read as a crossfade.