Skip to content
PixiKit

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
NameTypeDefaultDescription
itemsStageCarouselItem[]DEFAULT_ITEMSThe slides: image URLs, or objects with an image URL and alt text.
cardWidthnumber300Width of each card, in pixels.
cardHeightnumber380Height of each card, in pixels.
radiusnumber18Corner rounding of the cards, in pixels.
tintstring"#05060a"Color laid over cards as they recede, shading the depth of the stack.
depthnumber220Distance between cards along the depth axis, in pixels.
spreadnumber90Sideways offset per card, so the stack fans out to one side, in pixels.
tiltnumber22How far each receding card turns around the vertical axis, in degrees.
tiltDirection"left" | "right""right"The side the stack fans and tilts toward.
perspectivenumber1400CSS perspective in pixels; lower values exaggerate the depth.
visibleCardsnumber4How many cards deep stay visible before the rest fade out.
falloffnumber0.2How quickly brightness, tint and blur build up with depth.
blurnumber6The most blur applied to the furthest visible card, in pixels.
durationnumber700Length 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.
autoplaybooleanfalseAdvances on a timer, pausing on hover or focus.
autoplayDelaynumber3200Time between automatic moves, in milliseconds.
loopbooleantrueWraps from the last card back to the first.
showControlsbooleantrueShows the previous and next buttons.
showIndicatorsbooleantrueShows the dot indicators.
onChange(index: number, item: StageCarouselItem) => voidNoneCalled whenever the front card changes.
classNamestringNone

More media components in Pro

View all

Related