- Docs
- Components
- 3D & Shaders
- Warped Card
An image card that bulges under the cursor
| Name | Type | Default | Description |
|---|---|---|---|
width | string | number | "100%" | Container width |
height | string | number | "100%" | Container height |
cardWidth | string | number | 360 | Card width inside the container |
aspectRatio | number | 1.3 | Card aspect ratio (height / width, e.g. 1.3 for portrait) |
imageSrc | string | "https://..." | Image source URL |
radius | number | 0.95 | Bulge distortion radius (0–1, fraction of the card) |
strength | number | 1.1 | Bulge distortion strength |
dampening | number | 0.07 | Smoothing speed for mouse follow (0 = instant, higher = smoother) |
transitionDuration | number | 0.8 | Transition duration in seconds for hover in/out |
borderRadius | string | number | "16px" | Border radius in CSS units |
className | string | undefined | Additional CSS classes |
children | ReactNode | undefined | Content rendered above the effect |
widthstring | numberContainer width
"100%"heightstring | numberContainer height
"100%"cardWidthstring | numberCard width inside the container
360aspectRationumberCard aspect ratio (height / width, e.g. 1.3 for portrait)
1.3imageSrcstringImage source URL
"https://..."radiusnumberBulge distortion radius (0–1, fraction of the card)
0.95strengthnumberBulge distortion strength
1.1dampeningnumberSmoothing speed for mouse follow (0 = instant, higher = smoother)
0.07transitionDurationnumberTransition duration in seconds for hover in/out
0.8borderRadiusstring | numberBorder radius in CSS units
"16px"classNamestringAdditional CSS classes
undefinedchildrenReactNodeContent rendered above the effect
undefined