uibrik

Fan Carousel

Preview

Customize

Arc60°
Speed0.30/s
Blur8px
Fade25%
Blur span25%
Card width152px
Gap28px

Usage

import { FanCarousel } from "@/components/uibrik/fan-carousel/fan-carousel";

<FanCarousel />

Installation

npx shadcn@latest add https://uibrik.com/r/fan-carousel.json
Adds the files to components/uibrik/fan-carousel and installs motion and react-use-measure. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/fan-carousel.

Props

FanCarousel
arc
Type number
60
Half-angle of the arch. Cards are fully out of view by here.
speed
Type number
0.3
Cards that pass the top every second.
blur
Type number
8
Blur of a card as it dissolves at either side.
fade
Type number
25
Share of the width, per side, that dissolves into the background.
blurSpan
Type number
25
Share of the width, per side, over which the blur builds up.
cardWidth
Type number
152
Card width. Height follows at 4:5.
gap
Type number
28
Space between neighbouring cards along the arch. Negative overlaps them.
cards
Type { src: string; alt: string }[]
5 sample cards
The cards, in order. They repeat to fill the arch.
className
Type string
–
Classes for the wrapper.