Hover, tap, or press Enter. Backface culling keeps both sides crisp.
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 |
|---|---|---|---|
| front | ReactNode | Content on the front face. | |
| back | ReactNode | Content on the back face. | |
| axis | "x" | "y" | "y" | Flip direction: "y" turns sideways, "x" turns top to bottom. |
| trigger | "hover" | "click" | "hover" | What flips the card: "hover" or "click". |
| perspective | number | 1000 | CSS perspective distance in px. Lower values look more dramatic. |
| className | string | Extra classes added to the outer element. | |
| faceClassName | string | Extra classes added to both faces. |