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| Name | Type | Default | Description |
|---|---|---|---|
items | CoinStackItem[] | DEFAULT_ITEMS | Discs to render, top first. Each item: { id?, image, alt? }. |
size | number | 410 | Diameter of each disc, in pixels. |
tilt | number | 60 | Disc tilt in degrees. 0 is a flat circle, 90 is edge-on. |
stackGap | number | 45 | Vertical separation between adjacent discs, in pixels. |
interval | number | 4 | Seconds between advances of the active disc. |
transitionDuration | number | 0.9 | Seconds for the lift and settle move. |
paused | boolean | false | Pauses the auto-cycle. |
surfaceColor | string | "var(--background)" | Color of the disc surface (top face). |
borderColor | string | "var(--foreground)" | Color of the disc border ring. |
borderWidth | number | 1 | Border thickness, in pixels. |
className | string | None | |
style | CSSProperties | None | |
onActiveChange | (index: number) => void | None | Called when the active disc changes. |