Overlapping images that drift at different speeds and tidy into a stack as you scroll, for editorial storytelling.
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.
Customize
Usage
import { RingCarousel } from "@/components/motionkit/ring-carousel";
<RingCarousel
images={[
{ src: "/work/one.jpg", alt: "Sunrise over the hills" },
{ src: "/work/two.jpg", alt: "Blue hour in the valley" },
{ src: "/work/three.jpg", alt: "Dunes at golden hour" },
// six to ten images make a full ring
]}
/>Motion
The exact curves this component runs, plotted with Motion's own maths.
Drift
Runs on its own
Flick and coast
Drag and release
Step
Arrow key
Portfolio and photography heroes, product colourways, event and travel galleries, and team or case study showcases that deserve a centrepiece.
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.
| 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. |
How we audit: the WCAG 2.2 animation checklist and respecting reduced motion in React.
Yes. The file starts with "use client", so you can import it straight into a Server Component page or layout. It works in Vite as is, and in Astro as a React island.
Only the motion package, beside React and Tailwind CSS v4. There is no MotionKit package and no Tailwind config to add.
Yes, with MotionKit Plus. Add the @motionkit registry and your personal token to components.json (the snippet is on your account page), then run npx shadcn@latest add @motionkit/ring-carousel. It saves the file to components/motionkit and installs its dependencies.
Ring Carousel is part of MotionKit Plus (£12 / $15 / €14 a month or £96 / $120 / €112 a year). The live preview and playground are free to explore; Plus unlocks its source code, every customisation control and commercial use.
With reduced motion on, it doesn't drift, a flick doesn't coast and arrow keys turn it instantly.
Six to ten look best. Fewer leaves gaps and the ring reads as a few loose cards; more pushes the radius out, so lower cardWidth to keep it compact.
Overlapping images that drift at different speeds and tidy into a stack as you scroll, for editorial storytelling.
A carousel you can throw: it keeps the momentum of your flick, then springs to the nearest slide, with a progress bar and arrow controls.
Drag a handle across two layers to compare before and after, smoothly sprung.
The live preview is free to explore. Plus unlocks the source for Ring Carousel and every other premium component.
Not ready for Plus? A free account unlocks 4 premium components, Depth Card, Rolling Text, Dot Wave and Confetti Button, with no card needed.
Customize
Usage
import { RingCarousel } from "@/components/motionkit/ring-carousel";
<RingCarousel
images={[
{ src: "/work/one.jpg", alt: "Sunrise over the hills" },
{ src: "/work/two.jpg", alt: "Blue hour in the valley" },
{ src: "/work/three.jpg", alt: "Dunes at golden hour" },
// six to ten images make a full ring
]}
/>Motion
The exact curves this component runs, plotted with Motion's own maths.
Drift
Runs on its own
Flick and coast
Drag and release
Step
Arrow key