Stage Carousel
A stack of image cards receding into depth: the front card leaves toward the viewer and the next comes forward, by arrows, dots, drag, wheel or keys.
pixikit.com/docs/components/stage-carousel
Customize
Card width300px
Card height380px
Radius18px
Tint
Depth220px
Spread90px
Tilt22°
Tilt direction
Perspective1400px
Visible cards4
Falloff0.20
Blur6.0px
Duration700ms
Ease
Autoplay
Autoplay delay3200ms
Loop
Show controls
Show indicators
Props
22| Name | Type | Default | Description |
|---|---|---|---|
items | StageCarouselItem[] | DEFAULT_ITEMS | The slides: image URLs, or objects with an image URL and alt text. |
cardWidth | number | 300 | Width of each card, in pixels. |
cardHeight | number | 380 | Height of each card, in pixels. |
radius | number | 18 | Corner rounding of the cards, in pixels. |
tint | string | "#05060a" | Color laid over cards as they recede, shading the depth of the stack. |
depth | number | 220 | Distance between cards along the depth axis, in pixels. |
spread | number | 90 | Sideways offset per card, so the stack fans out to one side, in pixels. |
tilt | number | 22 | How far each receding card turns around the vertical axis, in degrees. |
tiltDirection | "left" | "right" | "right" | The side the stack fans and tilts toward. |
perspective | number | 1400 | CSS perspective in pixels; lower values exaggerate the depth. |
visibleCards | number | 4 | How many cards deep stay visible before the rest fade out. |
falloff | number | 0.2 | How quickly brightness, tint and blur build up with depth. |
blur | number | 6 | The most blur applied to the furthest visible card, in pixels. |
duration | number | 700 | Length of the move to the next card, in milliseconds. |
ease | "power1.out" | "power2.out" | "power3.out" | "power4.out" | "expo.out" | "back.out" | "power2.inOut" | "none" | "power3.out" | The easing of the move, by its common name. |
autoplay | boolean | false | Advances on a timer, pausing on hover or focus. |
autoplayDelay | number | 3200 | Time between automatic moves, in milliseconds. |
loop | boolean | true | Wraps from the last card back to the first. |
showControls | boolean | true | Shows the previous and next buttons. |
showIndicators | boolean | true | Shows the dot indicators. |
onChange | (index: number, item: StageCarouselItem) => void | None | Called whenever the front card changes. |
className | string | None |