Radial Fan Deck
A scroll-driven editorial card deck that unfolds from one shared hinge into a full radial fan. Scroll back to fold it into the centered stack.
Installation#
pnpm dlx shadcn@latest add @davinciui/radial-fan-deckUsage#
API Reference#
| Prop | Type | Default |
|---|---|---|
itemsCover faces arranged around the shared hinge. | RadialFanDeckItem[] | — |
cardWidthWidth of each card cover in CSS pixels. | number | 332 |
cardAspectRatioHeight divided by width for every cover. | number | 0.585 |
scrollProgressOptional controlled scroll position from 0 (closed) to 1 (fully fanned). | number | — |
startAngle / fanAngleStarting angle and total angular sweep of the fan in degrees. | number | -24 / 332 |
ariaLabelAccessible name for the decorative deck. | string | "Animated radial fan deck" |
classNameControls the stage dimensions and outer surface. | string | — |
Accessibility#
The host is role img with aria-label, while the entire card stage is aria-hidden, so cover titles and images are not announced individually. There are no focusable elements or keyboard controls for the scroll-driven fan.
Motion#
Card rotation and translation interpolate directly from scrollProgress or viewport scroll position with no easing props or transitions. matchMedia reduced motion forces progress to 1, showing the fully fanned, static deck.
View source
Keep in mind
Need a custom component?
I build bespoke UI components & websites tailored to your brand.

