Arrow keys or buttons. Click any side card to bring it forward.
Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.
| Prop | Type | Default | Description |
|---|---|---|---|
| items | ReactNode[] | Cards placed around the ring. | |
| itemWidth | number | 220 | Width of each card in px. |
| itemHeight | number | 280 | Height of each card in px. |
| spread | number | 1.15 | Gap multiplier on the ring radius (1 = cards just touch). |
| perspective | number | 1400 | CSS perspective distance in px. Lower values look more dramatic. |
| className | string | Extra classes added to the outer element. |
CSS 3D Transforms Without WebGL: Perspective, preserve-3d and the Gotchas