Fanned Card Deck
- group .........
- Cards and stacks
- source ........
- https://ui.aryank.space/components/fanned-card-deck
- markdown ......
- /lab/fanned-card-deck.md
- human .........
- /lab/fanned-card-deck
── WHAT_IT_IS ────────────────────────────────────────────────────────────────────────────────
Five collection cards laid out as a spread hand, each carrying its own generative canvas texture: waveform bars, an opacity mosaic, stacked ribbons, a flowing block grid, and a scrolling blueprint frame. Hovering lifts a card off the fan; clicking one grows it to full size, fades in its body copy, and sweeps the rest into a small overlapping cluster below. Textures are seeded, so a card always draws the same pattern, and they animate continuously on a canvas at a fixed resolution scaled into whichever slot the card holds. Motion for React.
── BEHAVIOUR ────────────────────────────────────────────────────────────────────────────────
* Two poses, one spring
Every card holds a resting fan pose and a cluster pose. With nothing selected the fan pose runs, with a card open that card centers and the rest drop into the cluster, so the whole set is one interpolation rather than a sequence of separate animations.
* Fixed-resolution textures
Each canvas always draws at 312 by 192 and is scaled into the card's current slot. The pattern keeps its line weight and density when a card grows, instead of regenerating coarser at the larger size.
* Seeded and deterministic
The textures use a mulberry32 generator seeded per card, so a card redraws the same pattern on every mount and there is no flicker between server and client render.
* Fan offsets track viewport width
The horizontal spread and the cluster scale are both interpolated between 400px and 1080px of viewport, so the hand tightens on small screens rather than pushing cards off the stage.