Animations & Motion

Card Deck Fan

Physics-based card stack that fans out and stacks on scroll.

scrollrevealcardsfanphysics

Props

Customize the component with these props

PropertyTypeDefaultDescription
images
string[][]Array of image URLs
cardCount
number5Number of cards
backgroundColor
stringbg-slate-900Background color of the component
containerHeight
stringh-[150vh]Height of the container
perspective
stringperspective-[1000px]CSS perspective value
cardWidth
stringw-64Width of each card
cardHeight
stringh-96Height of each card
cardBgColor
stringbg-whiteBackground color of cards
cardBorderColor
stringborder-white/20Border color of cards
cardPadding
stringp-2Padding of cards
imageOpacity
number0.8Opacity of images
labelColor
stringtext-whiteColor of card labels
labelSize
stringtext-xsSize of card labels
hintText
stringSCROLL TO STACKHint text displayed
hintColor
stringtext-whiteColor of hint text
hintSize
stringtext-smSize of hint text
fanAngle
number15Fan angle in degrees
fanXOffset
number100X offset for fan effect
scrollOffset
[string, string]["start end", "center center"]Scroll offset configuration
className
stringAdditional CSS classes
Card Deck Fan - Animations & Motion Component | UILora