A card that follows the pointer in light 3D. Tune the tilt, perspective, and glare.
Card

Token ready
Restyle every surface with your theme tokens.
14°
900
tsx
import { Tilt } from "@/components/motion/tilt"export function Example() { return ( <Tilt maxTilt={14} perspective={900} glare={true} className="w-full max-w-sm rounded-xl" > <div className="overflow-hidden rounded-xl border border-border bg-background"> <div className="relative aspect-[4/3] bg-muted"> <img src="/assets/brand/demos/attachments/attachment-1.png" alt="" className="absolute inset-0 size-full object-cover" /> </div> <div className="px-4 py-4"> <h3 className="text-sm font-medium tracking-wide text-foreground"> Token ready </h3> <p className="mt-1 text-xs tracking-wide text-muted-foreground"> Restyle every surface with your theme tokens. </p> </div> </div> </Tilt> )}Installation
npx @arctis-sh/@arctis-sh/ui@latest add tiltUsage
import { Tilt } from "@/components/motion/tilt"<Tilt className="w-full max-w-sm rounded-xl"> <div className="rounded-xl border border-border bg-background p-4"> Content </div></Tilt>API Reference
Tilt
| Prop | Type | Default |
|---|---|---|
| maxTilt | number | 14 |
| perspective | number | 900 |
| glare | boolean | true |
| className | string | — |
| children | ReactNode | — |
Also accepts the other native div attributes.