Tilt Card
Spring-damped 3D tilt with real perspective, a soft specular glare and a gentle lift. Mouse only; static under reduced motion.
Try it: Move over the card to tilt in 3D.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/tilt-card.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/tilt-card. You can also copy the source into components/ui/tilt-card.tsx (view on GitHub).
Usage
import { TiltCard } from '@/components/ui/tilt-card'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
maxTilt | number | 10 | Maximum rotation (deg). |
glare | boolean | true | Specular sheen that follows the pointer. |
scale | number | 1.02 | Scale while hovered. |
Dependencies
motion
Related Cards components
- Glass Card
Liquid-glass surface with specular rim, inner hairline and layered depth; regular (frosted) or clear variants, and a solid fallback for prefers-reduced-transparency.
- Spotlight Card
Radial glow and a lit hairline edge that track your pointer (CSS variables, no re-renders); keyboard focus inside lights it too.
- Swipe Cards
Stacked deck: drag, flick, tap or arrow-key cards away with keep/pass stamps; the deck springs forward and every swipe is announced. Fades instead of flying under reduced motion.
- Topographic Stack
Contour-offset layers separate on hover.
- Border Beam
A comet of light travels a crisp masked hairline border, with an optional soft bloom. Static under reduced motion.
- Windowpane Story Card
Frosted pane slides to reveal evidence.