Frame Scroll
- group .........
- Hero sections
- source ........
- https://ui.aryank.space/components/frame-scroll
- markdown ......
- /lab/frame-scroll.md
- human .........
- /lab/frame-scroll
── WHAT_IT_IS ────────────────────────────────────────────────────────────────────────────────
A pinned hero that collapses into a drifting grid. As you scroll, the headline slides up out of frame, a second line fades in word by word, then the full-bleed image shrinks to a small rounded tile in the center. Below it, four columns of thumbnails parallax past at staggered speeds before the frame settles into a quiet outro. GSAP ScrollTrigger with Lenis; owns its scroll container so it embeds anywhere.
── BEHAVIOUR ────────────────────────────────────────────────────────────────────────────────
* One pin, phased by hand
A single pinned ScrollTrigger drives the whole hero in onUpdate. The header lift, the word fade, the copy hide, and the image shrink each own a slice of progress, so they overlap and hand off without a timeline.
* Image becomes a tile
The hero photo is full-bleed, then its width, height, and corner radius interpolate down to a small centered tile over the last stretch of the pin, so the frame literally shrinks rather than cutting to the next section.
* Owns its scroll
By default it pins and parallaxes inside its own Lenis-smoothed container, so it embeds in a bounded box. Pass embedded={false} to run on the window scroll.