Click Stack

Click-to-cycle animated card stack

click-stack-tw

Customize

Stack Layout

250
300
20
-20
5

Card Appearance

24
30
0.3
1

Animation & Depth

0.35
0.08
0

Props

NameTypeDefaultDescription
itemsReactNode[]built-in cardsRenderable content for each card — images, text, JSX, or any React node
cardWidthnumber250Width of each card in pixels
cardHeightnumber300Height of each card in pixels
spreadXnumber20Horizontal offset between stacked depth levels
spreadYnumber-20Vertical offset between stacked depth levels
durationnumber0.35Transition duration in seconds (0.1–2.0)
easestring"power3.out"GSAP easing string for card repositioning
borderRadiusnumber24Card corner radius in pixels (0–50)
shadowBlurnumber30Card shadow blur radius (0–100)
shadowOpacitynumber0.3Card shadow opacity (0–1)
cardColorstring"#ffffff"Fallback background color for card surfaces
visibleCountnumber5Maximum number of cards shown in the stack (1–10)
depthScalenumber0.08Scale reduction per depth level (0–0.3)
depthOpacitynumber0Opacity reduction per depth level (0–1)
classNamestring""CSS class for the outer container
cardClassNamestring""CSS class applied to each card wrapper
opacitynumber1Overall container opacity (0–1)