Back
3D Card
Satu Visual ComponentNew
A perspective card that rotates toward the cursor in 3D.
3D Card
Hover and move — it tilts in real 3D.
Installation
Add it with the CLI:
Terminal
$
Or open the Code tab above and copy it in manually — it relies on the standard cn() helper from @/lib/utils.
Usage
Wrap any content. Hover and move to tilt; it scales up slightly for depth.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | Card content. |
| className | string | — | Extra classes. |
| intensity | number | 15 | Max rotation in degrees. |