Triangle Fill Scroll
- group .........
- Scroll sequences
- recording .....
- https://s4xw77gvirailb62.public.blob.vercel-storage.com/lab/triangle-fill-scroll.mp4
- source ........
- https://ui.aryank.space/components/triangle-fill-scroll
- markdown ......
- /lab/triangle-fill-scroll.md
- human .........
- /lab/triangle-fill-scroll
── WHAT_IT_IS ────────────────────────────────────────────────────────────────────────────────
A pinned scene where a lattice of alternating triangles floods with color in a random order. Every cell is assigned a shuffled position in the sequence at build time, then fills once scroll passes its slot, each easing toward its target scale on its own, so the fill spreads as scattered noise rather than a wipe. Two canvases stack around the cards: hollow outlines behind and filled triangles in front, so the cards are swallowed as the grid closes over them.
── BEHAVIOUR ────────────────────────────────────────────────────────────────────────────────
* The order is shuffled once, at build
Every cell gets a permanent random position in the fill sequence, so the flood pattern is arbitrary but stable, and scrubbing backwards empties in exactly the reverse order.
* Two canvases sandwich the content
Outlines render below the cards and fills above them, so a triangle appears to pass in front of the cards at the moment it fills, which is what makes the grid swallow them.
* Each triangle eases independently
Cells lerp toward their target scale at 0.15 per frame rather than jumping, and the redraw loop only continues while at least one is still moving.