Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Tilt Card

Pro

Tilts in 3D toward the pointer with an optional glare.

Installation

pnpm dlx shadcn@latest add @viewport/tilt-card

First time? Add the @viewport registry to components.json. Setup takes one minute.

Usage

The code behind the preview above comes with Truffle Pro.

Props

PropTypeDefault
maxnumber

Maximum tilt in degrees.

10
glareboolean

Show a glare that follows the pointer.

true
classNamestring—
children*React.ReactNode—

Accessibility

  • Stays flat for touch input and under reduced motion.
  • Glare layer is aria-hidden.