Warped Card

Image card with mouse-following bulge distortion shader

warped-card-tw

Customize

360
1.3
0.95
1.1
0.07
0.8

Props

NameTypeDefaultDescription
widthstring | number"100%"Container width
heightstring | number"100%"Container height
cardWidthstring | number360Card width inside the container
aspectRationumber1.3Card aspect ratio (height / width, e.g. 1.3 for portrait)
imageSrcstring"https://..."Image source URL
radiusnumber0.95Bulge distortion radius (0–1, fraction of the card)
strengthnumber1.1Bulge distortion strength
dampeningnumber0.07Smoothing speed for mouse follow (0 = instant, higher = smoother)
transitionDurationnumber0.8Transition duration in seconds for hover in/out
borderRadiusstring | number"16px"Border radius in CSS units
classNamestringundefinedAdditional CSS classes
childrenReactNodeundefinedContent rendered above the effect