Back to Components
Cards

Tilt Card

3D perspective card that tilts based on cursor position.

3D

Tilt Card

A responsive 3D tilt effect with depth and motion.

Dependencies

  • clsx
  • tailwind-merge
  • framer-motion

Files

  • components/ui/tilt-card.tsx

Installation

Using shadcn CLI

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

Manual installation

Copy the component file to your project and install dependencies:

npm install clsx tailwind-merge framer-motion