Flip Card

A dynamic flip card with smooth 180-degree flipping animations along both the X and Y axes, providing an engaging and interactive visual effect.

Install using CLI

npm
pnpm
bun
yarn
npx shadcn-vue@latest add "https://inspira-ui.com/r/flip-card.json"

Install Manually

Copy and paste the following code

FlipCard.vue

Examples

Horizontal Flip

API

Prop NameTypeDefaultDescription
classstring-The class to be applied to the component.
rotatex | yyYou can pass the rotate value as you want.
Slot NameDescription
defaultComponent to show as front.
backComponent to show as back.

Credits