Skip to main content
Components

Cover Flow

3D Cover Flow effect for showcasing items.

Obanai Iguro
Mitsuri Kanroji
Giyu Tomioka
Shinobu Kocho
Kanao Tsuyuri
Tanjiro Kamado
Nezuko Kamado
Zenitsu Agatsuma
Inosuke Hashibira
Muichiro Tokito

Kanao Tsuyuri

This was built on top of the Coverflow component.

Install

npx shadcn add https://ashishgogula.in/r/coverflow.json

Props

NameTypeDefaultDescription
itemsCoverFlowItem[]Array of items to render in the coverflow.
itemWidthnumber400Width of each card in pixels.
itemHeightnumber400Height of each card in pixels.
stackSpacingnumber100Horizontal spacing between off-center stacked cards.
centerGapnumber250Horizontal offset distance from center to side stacks.
rotationnumber50Y-axis rotation angle applied to side cards.
initialIndexnumber0Initially focused item index.
enableReflectionbooleanfalseShows mirrored reflection under each card.
enableClickToSnapbooleantrueClicking side cards snaps them to center.
enableScrollbooleantrueEnables horizontal wheel navigation.
scrollThresholdnumber100Wheel delta threshold before changing item.
classNamestringundefinedAdditional classes for the root container.
onItemClick(item: CoverFlowItem, index: number) => voidundefinedCalled when the active centered item is clicked.
onIndexChange(index: number) => voidundefinedCalled whenever active index changes.