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.json

Usage

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

PropTypeDescription
title*stringHeading shown at the top of the card.
descriptionstringSupporting text under the title.
childrenReactNodeContent shown below the description, such as a button.
classNamestringExtra Tailwind classes to change size, colors or borders.