Tilt Card

A card that leans toward the cursor in 3D with a glare highlight.

gsapMIT · free
Starter$9
Pro$29
Team$79

Installation

npx shadcn@latest add https://ombakui.com/r/tilt-card.json

Usage

import { TiltCard } from "@/components/tilt-card";

<TiltCard max={12}>
  <div className="p-6">Pro · $29</div>
</TiltCard>

Props

PropTypeDefaultDescription
children*ReactNode–
maxnumber10Maximum tilt in degrees.
scalenumber1.03Scale while hovered.
glarebooleantrueGlossy highlight that follows the cursor.
perspectivenumber900CSS perspective in px.
classNamestring–