Ring Carousel
hotA 3D cylinder of cards — drag with inertia and snapping, arrow keys, or let it auto-spin. The front card gets data-front.
css-3ddraginertia2 files · 161 locdeps: clsx, tailwind-merge
Installation
With the shadcn CLI, pointing at this platform’s registry:
npx shadcn@latest add https://opusui.131199999.xyz/r/ring-carousel.jsonOr offline, straight from your opus55 checkout (copies every file it needs):
node ../tailwind_component/opus55/scripts/add.mjs ring-carouselUsage
import { RingCarousel } from "@/components/opus/three/ring-carousel";
<RingCarousel itemWidth={200}>{cards}</RingCarousel>API
| Prop | Type | Default | Description |
|---|---|---|---|
| itemWidth / gap | number | 220 / 24 | Card width and spacing (px) — radius is derived. |
| autoplay | number | 8 | Idle spin (deg/s); pauses on hover. |
| snap | boolean | true | Settle on the nearest card. |
| tilt / perspective | number | -8 / 1200 | Camera tilt and perspective. |