Skip to content
PixiKit

Coin Stack

A tilted stack of discs that cycles through your images: the discs above the active one lift to show it, then the stack settles and starts again.

pixikit.com/docs/components/coin-stack

Customize

Size410px
Tilt60°
Stack gap45px
Interval4.0s
Transition duration0.90s
Paused
Surface color
Border color
Border width2px

Props

13
NameTypeDefaultDescription
itemsCoinStackItem[]DEFAULT_ITEMSDiscs to render, top first. Each item: { id?, image, alt? }.
sizenumber410Diameter of each disc, in pixels.
tiltnumber60Disc tilt in degrees. 0 is a flat circle, 90 is edge-on.
stackGapnumber45Vertical separation between adjacent discs, in pixels.
intervalnumber4Seconds between advances of the active disc.
transitionDurationnumber0.9Seconds for the lift and settle move.
pausedbooleanfalsePauses the auto-cycle.
surfaceColorstring"var(--background)"Color of the disc surface (top face).
borderColorstring"var(--foreground)"Color of the disc border ring.
borderWidthnumber1Border thickness, in pixels.
classNamestringNone
styleCSSPropertiesNone
onActiveChange(index: number) => voidNoneCalled when the active disc changes.

More media components in Pro

View all

Related