More components in Pro
Galleries, cards and interactive pieces for pages that need more than the basics.
items | Array<string | { image: string; alt?: string }> | 6 sample images | Slides to display. Pass image URLs or objects with an image URL and alt text. |
cardWidth | 300 | Width of each card in pixels. | |
cardHeight | 380 | Height of each card in pixels. | |
radius | 18 | Corner rounding of the cards in pixels. | |
tint | "#05060a" | Colour multiplied over cards as they recede, shading the depth of the stack. | |
depth | 220 | Z distance in pixels between each card along the depth rail. Higher values push the stack further back. | |
spread | 90 | Lateral offset in pixels applied per card so the stack fans out to one side. | |
tilt | 22 | Degrees each receding card rotates around the vertical axis, revealing its edge. | |
tiltDirection | "left" | "right" | "right" | Which side the stack fans and tilts toward. |
perspective | 1400 | CSS perspective in pixels. Lower values exaggerate the depth foreshortening. | |
visibleCards | 4 | How many cards deep remain visible before further ones fade out. | |
falloff | 0.2 | How quickly brightness, tint and blur ramp up with depth. | |
blur | 6 | Maximum blur in pixels applied to the furthest visible card. | |
duration | 700 | Length of the advance transition in milliseconds. | |
ease | "power3.out" | GSAP easing used for navigation transitions. | |
autoplay | Auto-advance the carousel, pausing on hover or focus. | ||
autoplayDelay | 3200 | Delay between auto-advances in milliseconds. | |
loop | Wrap seamlessly from the last card back to the first. | ||
showControls | Show the previous / next arrow buttons. | ||
showIndicators | Show the dot indicators. | ||
onChange | (index: number, item) => void | undefined | Called whenever the focused card changes. |
itemsArray<string | { image: string; alt?: string }>Slides to display. Pass image URLs or objects with an image URL and alt text.
6 sample imagescardWidthnumberWidth of each card in pixels.
300cardHeightnumberHeight of each card in pixels.
380radiusnumberCorner rounding of the cards in pixels.
18tintstringColour multiplied over cards as they recede, shading the depth of the stack.
"#05060a"depthnumberZ distance in pixels between each card along the depth rail. Higher values push the stack further back.
220spreadnumberLateral offset in pixels applied per card so the stack fans out to one side.
90tiltnumberDegrees each receding card rotates around the vertical axis, revealing its edge.
22tiltDirection"left" | "right"Which side the stack fans and tilts toward.
"right"perspectivenumberCSS perspective in pixels. Lower values exaggerate the depth foreshortening.
1400visibleCardsnumberHow many cards deep remain visible before further ones fade out.
4falloffnumberHow quickly brightness, tint and blur ramp up with depth.
0.2blurnumberMaximum blur in pixels applied to the furthest visible card.
6durationnumberLength of the advance transition in milliseconds.
700easestringGSAP easing used for navigation transitions.
"power3.out"autoplaybooleanAuto-advance the carousel, pausing on hover or focus.
autoplayDelaynumberDelay between auto-advances in milliseconds.
3200loopbooleanWrap seamlessly from the last card back to the first.
showControlsbooleanShow the previous / next arrow buttons.
showIndicatorsbooleanShow the dot indicators.
onChange(index: number, item) => voidCalled whenever the focused card changes.
undefinedDependencies
1 required package
npm install gsap


