Parallax Cards

3D layered card display with mouse-driven parallax depth effect

parallax-cards-tw

Customize

12
2500
3
1.2

Props

NameTypeDefaultDescription
imagesstring[][]Array of image URLs to display in 3D space
cardCountnumberimages.lengthNumber of cards to display (max 12, defaults to array length)
perspectivenumber25003D perspective strength in pixels (higher = less dramatic)
mouseSensitivitynumber3Mouse movement sensitivity multiplier for parallax effect
cardWidthnumberundefinedCard width in pixels (responsive by default)
cardHeightnumberundefinedCard height in pixels (responsive by default)
animationDurationnumber1.2Duration in seconds for position transition animations
enableDepthFogbooleanfalseEnable depth fog effect (fade and blur distant cards)
fogIntensitynumber1Fog intensity multiplier (0-2)
enableMagneticAttractionbooleanfalseEnable magnetic attraction to mouse cursor
magneticStrengthnumber50Magnetic attraction strength in pixels
onCardClick(index: number, imageUrl: string) => voidundefinedCallback fired when a card is clicked
classNamestring""Additional CSS classes for the container