Back to Components
Cards

Animated Card Hover

Hover tilt card with optional glare and depth effect.

PropsUsage ExampleVariations

3D Effect

Interactive Tilt

Move your cursor to see the card tilt with a subtle glare.

No Glare

Subtle Motion

A gentler tilt effect without the glare overlay.

Dependencies

  • clsx
  • tailwind-merge
  • framer-motion

Files

  • components/ui/animated-card-hover.tsx

Installation

Using shadcn CLI

npx shadcn add animated-card-hover --url https://ui.hampton.io

Manual installation

Copy the component file to your project and install dependencies:

npm install clsx tailwind-merge framer-motion

Related Cards Components