For Tailwind CSS v3 docs, click here.

翻转卡片

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

通过 CLI 安装

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

手动安装

复制并粘贴以下代码:

FlipCard.vue

示例

Horizontal Flip

API

Prop 名称类型默认值描述
classstring-The class to be applied to the component.
rotatex | yyYou can pass the rotate value as you want.
Slot Name描述
defaultComponent to show as front.
backComponent to show as back.

感谢