Flip Card

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.

FlipCard props

PropTypeDefaultDescription
frontReactNodeContent on the front face.
backReactNodeContent 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".
perspectivenumber1000CSS perspective distance in px. Lower values look more dramatic.
classNamestringExtra classes added to the outer element.
faceClassNamestringExtra classes added to both faces.

More components

Guides

Start

Cards

Scenes

Controls & text

Buttons

More cards

UI elements

Form controls

App components

Text & backgrounds

Showpieces

Blocks