Components
Animated Card
3D tilt and a cursor-following glow.
Animated Card
Hover over this card to see the tilt and glow.
Installation
Run this in a project that has shadcn set up (npx shadcn@latest init).
npx shadcn@latest add https://motion-nest-kappa.vercel.app/r/animated-card.jsonUsage
import { AnimatedCard } from "@/components/ui/animated-card";
export default function Example() {
return (
<AnimatedCard
title="Animated Card"
description="Hover to see the tilt and glow."
>
<button>Get started</button>
</AnimatedCard>
);
}Props
| Prop | Type | Description |
|---|---|---|
| title* | string | Heading shown at the top of the card. |
| description | string | Supporting text under the title. |
| children | ReactNode | Content shown below the description, such as a button. |
| className | string | Extra Tailwind classes to change size, colors or borders. |