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
#ffffff

Animation & Depth

0.35
0.08
0

Props

itemsReactNode[]

Renderable content for each card — images, text, JSX, or any React node

Default:built-in cards
cardWidthnumber

Width of each card in pixels

Default:250
cardHeightnumber

Height of each card in pixels

Default:300
spreadXnumber

Horizontal offset between stacked depth levels

Default:20
spreadYnumber

Vertical offset between stacked depth levels

Default:-20
durationnumber

Transition duration in seconds (0.1–2.0)

Default:0.35
easestring

GSAP easing string for card repositioning

Default:"power3.out"
borderRadiusnumber

Card corner radius in pixels (0–50)

Default:24
shadowBlurnumber

Card shadow blur radius (0–100)

Default:30
shadowOpacitynumber

Card shadow opacity (0–1)

Default:0.3
cardColorstring

Fallback background color for card surfaces

Default:"#ffffff"
visibleCountnumber

Maximum number of cards shown in the stack (1–10)

Default:5
depthScalenumber

Scale reduction per depth level (0–0.3)

Default:0.08
depthOpacitynumber

Opacity reduction per depth level (0–1)

Default:0
classNamestring

CSS class for the outer container

Default:""
cardClassNamestring

CSS class applied to each card wrapper

Default:""
opacitynumber

Overall container opacity (0–1)

Default:1