Stack Scroll
Cards that pin and pile into a deck as you scroll.
About
Each card pins below the last with position: sticky, then the next one slides up over it while the cards beneath ease back, a little smaller and darker, so the pile reads as real depth. No scroll-jacking: the page scrolls normally and one animation frame per scroll sets each card's scale and shade. Any content works as a card — pass them as children.
What you get
- Rebuild prompt
One paste into Claude Code, Cursor, Codex or v0 rebuilds it byte for byte.
- Source
StackScroll.tsx + StackScroll.css — plain React and CSS, every comment kept.
- Vite project
A ready-to-run project with this exact example and pinned versions — unzip, install, run.
More like this
All componentsAperture Zoom
ScrollA framed image that opens to full-bleed as you scroll, parting the headline.
Ink Reveal
ScrollA paragraph that fills in word by word as you scroll through it.
Horizontal Rail
ScrollScroll down, travel sideways: a pinned rail of panels with parallax.