Card Tilt

Motion

A card that tilts in 3D toward the pointer on springs, with an accent glare that follows the cursor. It stays flat when reduced motion is preferred.

src/registry/premium/card-tilt.tsx/r/card-tilt.json

Featured

Crafted details

Tilt responds to pointer. Reduced motion stays flat.

Tilt

Installation#

bash
npx shadcn@latest add @minidev/card-tilt

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/card-tilt.json

Usage#

tsx
import { CardTilt } from "@/components/ui/card-tilt"

export function Example() {
  return (
    <CardTilt />
  )
}

API reference#

CardTilt props
PropTypeDefault
titlestring"Crafted details"
bodystring"Tilt responds to pointer. Reduced mo...
classNamestring-

Dependencies#

npm

motion

Built from

No other MiniDev files

Examples#

All Animated React components