Tilt cardPro
A card that tilts in 3D toward the pointer with a moving glare.
$
pnpm dlx shadcn@latest add @lode/tilt-cardLive preview
LODEPRO
•••• 7718
ADA LOVELACE · 08/28
When to use
- Product shots, cards and credit-card visuals on marketing pages.
When not to use
- Cards containing forms.
Installation
$
pnpm dlx shadcn@latest add @lode/tilt-cardPro components need an API key and the registry in components.json. See CLI and API keys.
1Install the dependencies
npm install motion2Copy the source into your project
Usage
Import it from @/components/ui/tilt-card after installing.
example.tsx
import { TiltCard } from "@/components/ui/tilt-card";
export function Card() {
return <TiltCard className="rounded-2xl p-8">Lode Pro</TiltCard>;
}API reference
TiltCard
Tilts toward the pointer in 3D with a moving glare.
max= 10
number
Max tilt in degrees.
| Prop | Type | Default | Description |
|---|---|---|---|
| max | number | 10 | Max tilt in degrees. |
Accessibility
- Flat under reduced motion; the glare is aria-hidden.
Motion
- Spring tilt and glare follow the pointer; reset on leave.
Responsive behavior
- Static on touch.
Performance
- Motion values; no re-renders.
Notes for AI
- Keep max under 15.
This page as Markdown, for assistants and coding agents:
/components/tilt-card/markdownThe full library index for assistants is at /llms.txt.
Related
Lode·229 doc pages·llms.txt