Split Card Scroll
- group .........
- Cards and stacks
- source ........
- https://ui.aryank.space/components/split-card-scroll
- markdown ......
- /lab/split-card-scroll.md
- human .........
- /lab/split-card-scroll
── WHAT_IT_IS ────────────────────────────────────────────────────────────────────────────────
Three joined cards pinned on scroll: the strip narrows, splits apart into rounded cards with a gap, then each card flips to its colored back with staggered tilt.
── BEHAVIOUR ────────────────────────────────────────────────────────────────────────────────
* Threshold tweens
The width scrubs continuously, but the gap split and the flip fire once as tweens when progress crosses 0.35 and 0.7, and reverse when it crosses back.
* Desktop-only pin
A gsap.matchMedia gates the whole ScrollTrigger to 1000px and up; below that the cards stack statically with their inline styles cleared.