More components in Pro
Galleries, cards and interactive pieces for pages that need more than the basics.
images | Array<string | { src: string; alt?: string }> | [] | Images for the cards, from left to right. |
containerWidth | 400 | Width of the container in pixels. | |
containerHeight | 400 | Height of the container in pixels. | |
cardSize | 200 | Width and height of each card in pixels. | |
spread | 85 | Horizontal distance between cards in pixels. | |
rotation | 10 | Largest tilt in degrees. Each card leans by a different share of it, like a loose pile. | |
arc | Drops the outer cards by this many pixels so the fan curves. Negative values curve it up. | ||
pushDistance | 160 | How far the other cards slide away from the hovered one, in pixels. | |
hoverScale | 1.06 | Scale of the hovered card as it straightens and comes to the front. | |
bounciness | 0.6 | How much the cards overshoot as they pop in, from 0 to 1. | |
animationDelay | 0.5 | Seconds before the first card pops in. | |
animationStagger | 0.06 | Seconds between cards popping in. | |
enableHover | Spreads the cards apart on hover. | ||
borderWidth | 5 | Width of the card border in pixels. | |
borderColor | '#ffffff' | Color of the card border. | |
radius | 25 | Corner radius of the cards in pixels. | |
shadow | 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. | |
transformStyles | string[] | 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.
[]containerWidthnumberWidth of the container in pixels.
400containerHeightnumberHeight of the container in pixels.
400cardSizenumberWidth and height of each card in pixels.
200spreadnumberHorizontal distance between cards in pixels.
85rotationnumberLargest tilt in degrees. Each card leans by a different share of it, like a loose pile.
10arcnumberDrops the outer cards by this many pixels so the fan curves. Negative values curve it up.
pushDistancenumberHow far the other cards slide away from the hovered one, in pixels.
160hoverScalenumberScale of the hovered card as it straightens and comes to the front.
1.06bouncinessnumberHow much the cards overshoot as they pop in, from 0 to 1.
0.6animationDelaynumberSeconds before the first card pops in.
0.5animationStaggernumberSeconds between cards popping in.
0.06enableHoverbooleanSpreads the cards apart on hover.
borderWidthnumberWidth of the card border in pixels.
5borderColorstringColor of the card border.
'#ffffff'radiusnumberCorner radius of the cards in pixels.
25shadowbooleanSoft 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.



