NK

Search

Search pages, posts, and components

All components

Tilt Card

Cards

Card that tilts in 3D toward the pointer.

Orbit Analytics

Sub-second queries over billions of events.

Installation

Add it with the shadcn CLI:

$pnpm dlx shadcn@latest add https://nawalkattel.com.np/r/tilt-card.json
Or install manually
  1. 1. Install dependencies

    pnpm add motion clsx tailwind-merge
  2. 2. Copy the component source into components/library/tilt-card.tsx

Props

PropTypeDefaultDescription
maxnumber12Maximum tilt in degrees.
classNamestring - Classes applied to the card.

Accessibility

  • Tilt is pointer-only - keyboard focus and reading order are untouched.
  • Disabled under prefers-reduced-motion.

Dependencies

motionclsxtailwind-merge