Card Size
200px
Spread
85px
Rotation
10°
Arc
0px
Push Distance
160px
Hover Scale
1.06
Bounciness
0.6
Delay
0.5s
Stagger
0.06s
Border Width
5px
Radius
25px

More components in Pro

Galleries, cards and interactive pieces for pages that need more than the basics.

View all 255
21 properties
imagesArray<string | { src: string; alt?: string }>[]Images for the cards, from left to right.
containerWidth400Width of the container in pixels.
containerHeight400Height of the container in pixels.
cardSize200Width and height of each card in pixels.
spread85Horizontal distance between cards in pixels.
rotation10Largest tilt in degrees. Each card leans by a different share of it, like a loose pile.
arcDrops the outer cards by this many pixels so the fan curves. Negative values curve it up.
pushDistance160How far the other cards slide away from the hovered one, in pixels.
hoverScale1.06Scale of the hovered card as it straightens and comes to the front.
bounciness0.6How much the cards overshoot as they pop in, from 0 to 1.
animationDelay0.5Seconds before the first card pops in.
animationStagger0.06Seconds between cards popping in.
enableHoverSpreads the cards apart on hover.
borderWidth5Width of the card border in pixels.
borderColor'#ffffff'Color of the card border.
radius25Corner radius of the cards in pixels.
shadowSoft drop shadow that deepens on hover.
onCardClick(index: number) => voidCalled with the card index on click or Enter. Cards become focusable buttons when it is set.
transformStylesstring[]Optional custom positions such as "rotate(5deg) translate(-150px)". Overrides spread, rotation and arc.
Extra class names for the container.
Inline styles for the container.
imagesArray<string | { src: string; alt?: string }>

Images for the cards, from left to right.

Default[]
containerWidthnumber

Width of the container in pixels.

Default400
containerHeightnumber

Height of the container in pixels.

Default400
cardSizenumber

Width and height of each card in pixels.

Default200
spreadnumber

Horizontal distance between cards in pixels.

Default85
rotationnumber

Largest tilt in degrees. Each card leans by a different share of it, like a loose pile.

Default10
arcnumber

Drops the outer cards by this many pixels so the fan curves. Negative values curve it up.

pushDistancenumber

How far the other cards slide away from the hovered one, in pixels.

Default160
hoverScalenumber

Scale of the hovered card as it straightens and comes to the front.

Default1.06
bouncinessnumber

How much the cards overshoot as they pop in, from 0 to 1.

Default0.6
animationDelaynumber

Seconds before the first card pops in.

Default0.5
animationStaggernumber

Seconds between cards popping in.

Default0.06
enableHoverboolean

Spreads the cards apart on hover.

borderWidthnumber

Width of the card border in pixels.

Default5
borderColorstring

Color of the card border.

Default'#ffffff'
radiusnumber

Corner radius of the cards in pixels.

Default25
shadowboolean

Soft drop shadow that deepens on hover.

onCardClick(index: number) => void

Called with the card index on click or Enter. Cards become focusable buttons when it is set.

transformStylesstring[]

Optional custom positions such as "rotate(5deg) translate(-150px)". Overrides spread, rotation and arc.

Extra class names for the container.

Inline styles for the container.

Bounce Cards — React Component | React Bits