Pin Stack
Cards that pin and pile up as you scroll: each buried card shrinks, dims and settles under the next, with smooth wheel scrolling and optional snap.
pixikit.com/docs/components/pin-stack
Customize
Item distance40px
Item stack distance22px
Stack position
Item scale0.05
Base scale0.80
Dim amount0.25
Blur amount0.0px
Tilt amount0°
Rotation amount0.0°
Hold distance200px
Smooth scroll
Snap
Use window scroll
Props
16| Name | Type | Default | Description |
|---|---|---|---|
children | ReactNode | None | The cards to stack, usually PinStackItem elements. |
itemDistance | number | 100 | The gap between cards before they stack, in pixels; larger gaps mean more scrolling between cards. |
itemStackDistance | number | 24 | How far each card rests below the one before it in the stack, in pixels; 0 piles them exactly. |
stackPosition | number | string | "15%" | Where the stack pins, from the top of the viewport or container: a number of pixels or a % string. |
itemScale | number | 0.05 | How much a card shrinks for each card stacked on top of it. |
baseScale | number | 0.8 | The smallest a buried card can shrink to. |
dimAmount | number | 0.2 | How much a card darkens for each card stacked on top of it, from 0 to 1. |
blurAmount | number | 0 | Blur added for each card stacked on top, in pixels. |
tiltAmount | number | 0 | How far buried cards lean back in 3D, in degrees. |
rotationAmount | number | 0 | How far buried cards turn, alternating left and right like a loose pile, in degrees. |
holdDistance | number | 200 | How long the finished stack stays pinned before it scrolls away, in pixels of scrolling. |
smoothScroll | boolean | true | Glides mouse wheel scrolling; touch, keyboard and scrollbar scrolling stay native. |
snap | boolean | false | When scrolling stops near a card, glides it the rest of the way onto the stack. |
useWindowScroll | boolean | false | Stacks the cards as the page scrolls instead of scrolling inside its own container. |
onStackComplete | () => void | None | Called when the last card lands on the stack. |
className | string | None |