Tilt Card

A card that leans toward the pointer and catches the light with a soft moving glare.

  • Card
  • Interaction
  • 3D

Uses clsx, tailwind-merge

Open in ChatGPTOpen in Claude

Keyframe

Move your pointer across me

The card leans toward the cursor and catches the light.

Installation

Add the component on its own with the CLI, or copy the file in by hand.

The CLI writes components/ui/tilt-card.tsx and installs clsx and tailwind-merge. It needs the @keyframeui registry in components.json; add it once per project.

npx shadcn@latest add @keyframeui/tilt-card

Examples

Finished sections built with Tilt Card. Each one installs whole, with the component included.

Pricing Cards

Three plan cards, with the featured plan leaning harder.

Hobby

$0 / month

For side projects and experiments.

  • 3 projects
  • Community support
  • Basic analytics

Pro

$24 / month

For teams shipping every week.

  • Unlimited projects
  • Priority support
  • Advanced analytics

Team

$79 / month

For organizations that need control.

  • SSO and audit logs
  • Dedicated support
  • Custom roles

Feature Grid

A grid of subtle tiles with a gentler tilt and no glare.

Built for interaction

One card, four small details

01

Pointer aware

Rotation follows the cursor across the whole card.

02

No re-renders

Position is written to CSS variables, not React state.

03

Reduced motion

Tilt is skipped for people who ask for less movement.

04

Fully themable

Plain Tailwind classes. Bring your own colors.

Props

children

TypeReact.ReactNode

Content rendered inside the card.

className

Typestring

Extra classes for the card container.

maxTilt

TypenumberDefault12

Maximum rotation in degrees when the pointer is at an edge.

scale

TypenumberDefault1.03

Scale applied while the pointer is over the card.

perspective

TypenumberDefault900

CSS perspective distance in pixels. Lower values feel more dramatic.

glare

TypebooleanDefaulttrue

Show a light sheen that follows the pointer.