For Tailwind CSS v3 docs, click here.

Animate Grid

Skew Animation grid with box shadow.

通过 CLI 安装

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

手动安装

复制并粘贴以下代码:

AnimateGrid.vue

Add SVG file

Add at least one SVG file to the same folder as your component and update the import in your component to use it

API

Prop 名称类型默认值描述
textGlowStartColorstring"#38ef7d80"Color of the box shadow start.
textGlowEndColorstring"#38ef7d"Color of the box shadow end.
perspectivenumber600You can pass perspective to transform CSS property.
rotateXnumber-1You can pass rotateX to transform CSS property.
rotateYnumber-15You can pass rotateY to transform CSS property.
cards[]"[{logo: 'src'}]"Cards to display in grid.
classstring""Additional tailwind CSS classes for custom styling.

功能特性

  • Slot-Based Content: Supports a default slot to add content inside the Animate Grid container.

感谢