Atelier UI

搜索组件…

搜索组件…

Tilt Card

跟随指针的 3D 倾斜卡片,带高光反光,移开后平滑复位。

在沙盒中编辑

复制一段给 AI 编程工具的提示词,包含源码、依赖和用法

属性

TiltCardProps

同时支持以下类型的全部属性: React.ComponentProps<"div">

属性类型默认值说明
maxTiltnumber12Maximum rotation in degrees
perspectivenumber900CSS perspective distance in px
scalenumber1.03Scale while the pointer is over the card
glarebooleantrueShow a glare highlight that follows the pointer
glareOpacitynumber0.35Peak opacity of the glare, 0 to 1

安装

$ npx shadcn@latest add https://chromotion.dev/r/tilt-card.json

同类组件