Falling Tag List
- group .........
- Layout, lists and widgets
- source ........
- https://ui.aryank.space/components/falling-tag-list
- markdown ......
- /lab/falling-tag-list.md
- human .........
- /lab/falling-tag-list
── WHAT_IT_IS ────────────────────────────────────────────────────────────────────────────────
A hover list where each oversized name springs open, fans a small stack of thumbnails up from behind it, and drops its descriptor tags in as rounded physics pills that tumble and settle on a floor. Leaving fades the pills, collapses the row, and slides the images back down, with the name flipping between a resting and an active color. GSAP for the springs, Matter.js for the pile.
── BEHAVIOUR ────────────────────────────────────────────────────────────────────────────────
* A real physics pile
On hover the row spins up a Matter.js world with a floor and two walls, drops a body per tag, and copies each body's position and angle onto a DOM pill every frame, so the tags actually tumble and stack instead of animating along a path.
* Springs, not eases
The row height, the fanned thumbnails, and the collapse all use elastic easing, so opening and closing overshoot and settle. The drop is delayed a beat so the pills land into an already-open row.
* Built to be interrupted
Entering and leaving kill in-flight tweens, fade and clear the pile, and tear down the engine, so flicking across the list never leaves stray pills or a running simulation behind.