Flip Card

A 3D animated flip card component that flips on hover, customizable by direction, rotation style, and transition duration.

Examples

Flip Card Basic

Basic ussage using the default values.

front image

BLOOM

Explore More

Dive into our exclusive collection of hand-crafted visuals.

Flip Card Custom

Example using vertical flip direction and reverse rotation

Build Mode

We used to look up at the sky and wonder.

npm run dev

Ship Mode

Now we just look down and worry. Time to launch.

git push origin main

Installation

npx shadcn@latest add "https://ui.rechesoares.com/registry/flip-card.json"

Component Props

PropTypeDefaultRequiredDescription
frontReactNode-YesThe content to be displayed on the front side of the card.
backReactNode-YesThe content to be displayed on the back side of the card.
durationnumber0.3NoDuration of the flip animation in seconds.
flipDirection'horizontal' | 'vertical''horizontal'NoDirection of the flip.
flipRotation'forward' | 'reverse''forward'NoFlip rotation direction.
classNamestring-NoCustom class name for the outer card container.
panelClassNamestring-NoCustom class name for both front and back panels.