Gradient Carousel

3D card carousel with dynamic gradient background extraction

Carousel item 1
Carousel item 2
Carousel item 3
Carousel item 4
Carousel item 5
Carousel item 6
Carousel item 7
Carousel item 8

Customize

Max Rotation (degrees)
28
Max Depth (px)
200
Min Scale
0.85
Card Gap (px)
15
Card Aspect Ratio
1.00
Friction Factor
0.95
Wheel Sensitivity
0.8
Drag Sensitivity
1.0
Initial Index
0
Background Blur (px)
24
Gradient Size
1.00
Gradient Intensity
0.25

Props

16
imagesstring[]

Array of image URLs to display in the carousel. The component will extract dominant colors from each image to create dynamic gradient backgrounds.

Default["https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?w=800&q=80", ...]
classNamestring

Additional CSS classes for the wrapper container. Use this to customize the carousel's appearance.

Default""
maxRotationDegreesnumber

Maximum rotation angle for cards in degrees. Controls how much cards rotate as they move away from center.

Default28
maxDepthPxnumber

Maximum depth on the Z-axis in pixels. Controls how far cards move back in 3D space as they move away from center.

Default140
minScalenumber

Minimum scale factor for cards (0-1). Cards will scale down to this value as they move away from center.

Default0.92
cardGapnumber

Gap between cards in pixels. Controls the spacing between adjacent cards in the carousel.

Default28
frictionFactornumber

Velocity decay factor (0-1). Lower values create more friction and slower deceleration. Range: 0.5 to 0.99.

Default0.9
wheelSensitivitynumber

Mouse wheel sensitivity multiplier. Higher values make wheel scrolling more responsive. Range: 0.1 to 2.0.

Default0.6
dragSensitivitynumber

Drag sensitivity multiplier. Higher values make dragging more responsive. Range: 0.5 to 2.0.

Default1.0
backgroundBlurnumber

Blur intensity for background gradient in pixels. Controls how blurred the animated gradient background appears.

Default24
gradientSizenumber

Size of the gradient (0-1). Controls the radius of the gradient circles. Higher values create larger, more spread out gradients.

Default0.65
gradientIntensitynumber

Intensity/opacity of the gradient (0-1). Controls how vibrant and visible the gradient colors are. Higher values create more intense colors.

Default0.7
enableKeyboardboolean

Enable keyboard arrow keys navigation. When enabled, users can navigate the carousel using the left and right arrow keys.

Defaulttrue
onCardChange(index: number) => void

Callback function triggered when the active card changes. Receives the new card index as a parameter.

Defaultundefined
cardAspectRationumber

Aspect ratio of cards (width/height). Default is 4/5. Use values like 1 for square, 16/9 for landscape, etc.

Default0.8 (4/5)
initialIndexnumber

Initial card index to display when the carousel loads. Must be within the range of available images.

Default0