# Ring Carousel

> Images hung on a slowly turning 3D ring. Drag or swipe to spin it with real momentum; cards dim and fall back as they turn away.

Category: Layout · MotionKit Plus · Updated 2026-11-09 · Live demo: https://www.motionkitui.com/components/ring-carousel

## When to use it

Portfolio and photography heroes, product colourways, event and travel galleries, and team or case study showcases that deserve a centrepiece.

## How it works

The cards sit in a 3D space with perspective. Each one is turned to its own angle around the ring and pushed out along that angle by a radius, worked out from the card width and count so neighbours sit edge to edge. Spinning the ring is a single rotateY motion value. A frame loop drifts it while nobody is touching it, dragging maps pixels to degrees, and letting go hands the measured speed to an inertia animation that coasts and then snaps a card square to the front. Each card reads the angle and dims as it turns away, using the cosine of its angle to the viewer.

## Installation

Part of MotionKit Plus (https://www.motionkitui.com/pricing). Subscribers install it with `npx shadcn@latest add @motionkit/ring-carousel` after adding their registry token from https://www.motionkitui.com/account.

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `images` | `RingImage[]` |  | Each image's src and alt. Six to ten make a full ring. |
| `cardWidth` | `number` | `150` | Width of each card in pixels; height follows 3:4. |
| `speed` | `number` | `8` | Degrees per second it drifts on its own. 0 keeps it still. |
| `tilt` | `number` | `-8` | How far the ring leans back, in degrees. |
| `gap` | `number` | `18` | Space between neighbouring cards, in pixels. |

## Accessibility

- **Keyboard: Pass.** The ring is one tab stop with a visible focus ring; Left and Right turn it one image at a time.
- **Screen readers: Pass.** Announced as a carousel with instructions, and each image is a numbered slide with its alt text.
- **Reduced motion: Pass.** With reduced motion on, it doesn't drift, a flick doesn't coast and arrow keys turn it instantly.
- **Colour contrast: Not applicable.** Images only; there's no text of its own.
