Free · MIT licence · No dependencies

Fan Carousel Free React component

Image cards hinged on one shared axis, fanned out like the pages of an open book and spinning slowly in 3D. Drag sideways to spin it yourself. Pure CSS 3D, no WebGL.

  • React
  • CSS
  • Images
  • 3D
  • Carousel
Fan Carousel

Get the code

Install in one linenpx shadcn@latest add https://alphenex.com/r/fan-carousel.json

Works with any React project through the shadcn CLI. Prefer to paste it yourself? Copy the two files below into components/alphenex/. No Tailwind or animation library needed.

import FanCarousel from '@/components/alphenex/fan-carousel';

<FanCarousel images={[{ src: '/work-1.jpg', alt: 'Project one' }, /* ... */]} />

How the fan carousel works

All cards hang from one vertical line. Each one is rotated around its own left edge by an equal share of 360 degrees, so together they open up like the pages of a book stood on its spine.

The parent keeps the 3D space with transform-style: preserve-3d, and one loop rotates it around the axis, tilted forward and sideways so you see the fan from an angle.

Dragging adds to the rotation and leaves momentum that eases back to the normal spin. A blurred ellipse underneath grounds it.

Frequently asked questions

Five to eight. Fewer cards leave big gaps, more cards start to crowd the axis.

Want motion like this on your website?

We design and build custom websites with motion, 3D and SEO built in. Websites from $500.

More free components

Explore our work