Chrome Folio Page
- group .........
- Pages
- source ........
- https://ui.aryank.space/pages/chrome-folio-page
- markdown ......
- /lab/chrome-folio-page.md
- human .........
- /lab/chrome-folio-page
── WHAT_IT_IS ────────────────────────────────────────────────────────────────────────────────
A dark portfolio homepage built from four scroll movements. The masthead sets a wordmark in mixed grotesque and italic serif over a liquid-chrome WebGL sphere, shaded with noise-rotated line bands under a screen-space grain pass and steered by the pointer. Scrolling grows the chrome band to full bleed while the masthead layers lift at three rates, then a cube warps in from deep Z as the mark blurs away, and a pinned fly-through sends project cards across an oversized word. Three.js, GSAP ScrollTrigger, SplitText, and Lenis.
── BEHAVIOUR ────────────────────────────────────────────────────────────────────────────────
* Noise rotates the sampling frame
The sphere's fragment shader runs 3D value noise over the vertex position and uses that value as a rotation angle for the UV before sampling two smoothstepped sine bands. Rotating the frame is what folds the bands into the liquid-metal read, rather than sliding them.
* Linear output keeps the greys
The renderer writes linear sRGB instead of the managed default. The shader already emits display-referred greys, so letting three convert them a second time would wash the chrome toward white.
* The camera sits inside the sphere
A 1.5 unit sphere with the camera at z=1 puts the near surface past the camera, so the mesh fills the frame as a surface rather than reading as a ball. The band scale is tuned for that distance.
* Pointer rotation is lerped, not bound
The pointer sets a target angle and each frame closes five percent of the remaining distance, so the chrome keeps drifting after the cursor stops instead of locking to it.
* Cube arrives from deep Z
The cube interpolates from a 180000px Z offset with full rotations on all three axes. The first half of the pinned scroll flies it in, the second half adds a 360 degree spin on top of the settled transform.
* Cards run off one driver object
All cards read a single tweened value rather than owning timelines. Each offsets that value by its index and clamps, then picks a segment out of a four-stop keyframe array, which is what lets them fan out and recombine without drifting apart.