Home/Components/Spring Back Card

Spring Back Card

3D spring physics card that follows cursor movement with smooth lerp interpolation and rotation effects.

Loading preview…

Props

17 total
PropTypeDefaultDescription
childrenReactNodeundefinedCustom content to render inside the card
imgSrcstringundefinedImage source URL for the card background
imgAltstring"Card image"Alt text for the card image
widthClassstring"w-28 sm:w-32 md:w-40 lg:w-56"Tailwind width class for card size
heightClassstring"h-36 sm:h-40 md:h-52 lg:h-72"Tailwind height class for card size
classNamestring""Additional CSS classes for positioning
styleCSSProperties{}Inline styles for the wrapper
initialRotationnumber0Initial rotation angle in degrees (positive = clockwise)
offsetXnumber0Horizontal offset from the card's base position
delaynumber0Animation delay in seconds for entrance animation
indexnumber0Index used for staggered entrance animations
interactivebooleantrueEnable/disable cursor tracking interaction
maxRotationnumber18Maximum rotation angle when following cursor
maxXnumber80Maximum horizontal displacement in pixels
maxYnumber60Maximum vertical displacement in pixels
lerpSpeednumber0.1Speed of the spring interpolation (lower = smoother but slower)
mobileVisiblebooleantrueWhether the card is visible on mobile screens (< 640px)
← PreviousTeam Section
Next →More Space Scroll