A collectible-style card. The rainbow foil and shine slide as you move.
Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | Content shown on the card. | |
| className | string | Extra classes added to the outer element. | |
| max | number | 14 | Max tilt in degrees. |
| perspective | number | 900 | Perspective distance in px. Lower is more dramatic. |
3D Card Tilt Effect in React with Tailwind and Framer Motion