Docs / Components / Image Wheel

Image Wheel

A 3D horizontal image wheel carousel with depth-of-field blur, smooth spring drag physics, and interactive focus alignment.

Tropical beach resort
Beach aerial view with huts
Rocky ocean coast
Kite surfing in open water
Red phone booth on beach with palm trees
Cruise deck railing with life ring
Boat moored in turquoise ocean
Coastal cliff sunset
Vintage ferris wheel cabins against blue sky

Dependencies

Install the following dependencies to use this component:

1npm install motion lucide-react clsx tailwind-merge

Installation

Run the following command in your terminal to add the component to your project:

1npx rankflow-ui@latest add image-wheel

Props Reference

PropTypeDefaultDescription
images(string | ImageWheelItem)[]DEFAULT_IMAGESArray of image URLs or ImageWheelItem objects.
cardWidthnumber220Width of each card in pixels.
cardHeightnumber220Height of each card in pixels.
radiusnumber520Radius of the 3D cylindrical curve.
angleStepnumber24Angle in degrees between adjacent cards.
defaultIndexnumber4Initial active card index.
loopbooleanfalseWhether the wheel rotates continuously in a loop.
onIndexChange(index: number) => voidundefinedCallback triggered when the centered active card index changes.
classNamestring''Additional wrapper CSS classes.