Skip to content
PixiKit

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
NameTypeDefaultDescription
childrenReactNodeNoneThe cards to stack, usually PinStackItem elements.
itemDistancenumber100The gap between cards before they stack, in pixels; larger gaps mean more scrolling between cards.
itemStackDistancenumber24How far each card rests below the one before it in the stack, in pixels; 0 piles them exactly.
stackPositionnumber | string"15%"Where the stack pins, from the top of the viewport or container: a number of pixels or a % string.
itemScalenumber0.05How much a card shrinks for each card stacked on top of it.
baseScalenumber0.8The smallest a buried card can shrink to.
dimAmountnumber0.2How much a card darkens for each card stacked on top of it, from 0 to 1.
blurAmountnumber0Blur added for each card stacked on top, in pixels.
tiltAmountnumber0How far buried cards lean back in 3D, in degrees.
rotationAmountnumber0How far buried cards turn, alternating left and right like a loose pile, in degrees.
holdDistancenumber200How long the finished stack stays pinned before it scrolls away, in pixels of scrolling.
smoothScrollbooleantrueGlides mouse wheel scrolling; touch, keyboard and scrollbar scrolling stay native.
snapbooleanfalseWhen scrolling stops near a card, glides it the rest of the way onto the stack.
useWindowScrollbooleanfalseStacks the cards as the page scrolls instead of scrolling inside its own container.
onStackComplete() => voidNoneCalled when the last card lands on the stack.
classNamestringNone

More media components in Pro

View all

Related