Stack scroll

Cards that pile up as you scroll. Each one sticks, and as the next slides over it, it shrinks, tips back and dims.

Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.

StackScroll3D props

PropTypeDefaultDescription
cardsReactNode[]One entry per card.
heightnumber420Height of the scrolling area in px.
shrinknumber0.05How much each older card shrinks (0 to 0.2).
stepnumber16Gap between the stuck cards, in px.
classNamestringExtra classes added to the outer element.
cardClassNamestringExtra classes added to every card.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks