
Scroll Stack
Scroll
A scroll-driven card row that slides across a pinned section while each card drifts and tilts, adding motion to equal-weight cards without changing their order.
Scroll Shuffled Cards pins a row of cards and slides it across the screen as you scroll, while each card drifts and tilts on its own path. The scattered motion adds energy, and the cards never change order.
Use Scroll Shuffled Cards when a set should feel tossed loose by the visitor’s movement. Testimonial pages, team pages, and product galleries can use it to keep equal-weight cards lively without making a ranking claim. The page job is freshness: the section should feel responsive while source order remains intact.
The cards keep their source order at all times, so screen readers, keyboard users, and reduced-motion visitors meet them in the same sequence they appear on screen.
import ScrollShuffledCards from '@/components/effects/scroll-shuffled-cards' const page = () => { return ( <> <ScrollShuffledCards /> </> )} export default pageA testimonial page with several equal-weight customer quotes: Scroll Shuffled Cards slides the quotes across the screen as a loosely scattered row, while the source order remains stable for screen readers and keyboard users.
Not for ordered steps, ranked proof, or content where sequence communicates priority.
Not for cards with dependent order, legal meaning, or cumulative explanation.
Animate transform and opacity, avoid layout reads in scroll handlers, pre-size media, and clean up timelines/listeners when the route changes.
The animated sequence must match DOM order. On mobile, replace pinned or horizontal mechanics with stacked sections, native swipe, or static cards.
| Prop | Type | Default | Description |
|---|---|---|---|
background | color | #FFFBEB | Background color of the section. |
cardsGap | number | 6 | Spacing between cards, in vw. |
sectionHeight | number | 400 | Total scroll-track height (vh) - controls how much scrolling the shuffle takes. |
shuffleIntensity | number | 1 | Multiplier on how far and how much each card drifts/rotates during the shuffle. |
As you scroll, the row slides across a pinned section and each card drifts and tilts on its own random path, so the group feels tossed loose. The cards never swap places, so the reading order stays the same. Use it to make a static card group feel alive.
Mobile runs the same pinned horizontal slide with tighter card spacing, and the cards keep their order. With reduced motion, the cards rest in place without drifting or tilting, while the row itself still slides across as you scroll.
Check that the scatter stays readable at your card size, that the row's travel suits the section height, and that the cards land in a readable layout at the end of the scroll. Test that reduced motion keeps the cards still while the row slides.
A set of equal-weight cards where a little kinetic energy adds personality — tags, posts, or gallery tiles. It's wrong for ranked or sequential content where order carries meaning. Keep cards independent.
Avoid it whenever card order communicates priority or sequence, or where the motion would distract from reading. If the shuffle makes the group feel chaotic rather than edited, drop it. Skip it on content users need to parse precisely.
Need a custom effect? Tell us what to create.