Atelier UI

Search components…

Search components…

Tilt Card

A 3D card that tilts toward the pointer with a glare highlight and eases back on leave.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

TiltCardProps

Also accepts all props of React.ComponentProps<"div">

PropTypeDefaultDescription
maxTiltnumber12Maximum rotation in degrees
perspectivenumber900CSS perspective distance in px
scalenumber1.03Scale while the pointer is over the card
glarebooleantrueShow a glare highlight that follows the pointer
glareOpacitynumber0.35Peak opacity of the glare, 0 to 1

Install

$ npx shadcn@latest add https://chromotion.dev/r/tilt-card.json

More like this