Card Fan Landing Reveal
- group .........
- Preloaders and loaders
- recording .....
- https://s4xw77gvirailb62.public.blob.vercel-storage.com/lab/card-fan-landing-reveal.mp4
- source ........
- https://ui.aryank.space/components/card-fan-landing-reveal
- markdown ......
- /lab/card-fan-landing-reveal.md
- human .........
- /lab/card-fan-landing-reveal
── WHAT_IT_IS ────────────────────────────────────────────────────────────────────────────────
A load sequence that deals a hand. Eight cards pop out around a circle one at a time, then collapse back to nothing. As they go, a second set is already stacked at the first card's exact slot, face down and scaled to a tenth. Those five lift, the front one flips over, and they fan out to evenly spaced positions measured from the real frame width, so the spread always fits its container.
── BEHAVIOUR ────────────────────────────────────────────────────────────────────────────────
* The second hand starts where the first ended
Outro cards are positioned at the first intro card's exact slot on the circle, face down and at a tenth scale, so the deal reads as the same hand being re-dealt rather than a new set appearing.
* Fan positions are measured, not fixed
Final x positions are computed from the real frame width minus padding and card width, so the spread reaches the edges without overflowing at any size.
* Transform origins set the fan direction
The two left cards pivot from their bottom-right corner and the two right ones from bottom-left, which is what makes the hand splay outward instead of sliding sideways.