Card fan

A hand of cards in an arc. The one you point at rises while its neighbours part. Works with Tab and arrow keys.

Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.

CardFan3D props

PropTypeDefaultDescription
cardsReactNode[]Content of each card in the fan.
widthnumber150Card width in px.
heightnumber210Card height in px.
spreadnumber46Total angle of the fan in degrees.
onSelect(index: number) => voidCalled with the index of the card the user picks.
classNamestringExtra classes added to the outer element.
cardClassNamestringExtra classes added to each card.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks