Tilt Card
Free, copy-pasteable Tailwind CSS & Framer Motion Tilt Card component. Accessible, fully responsive, dark-mode ready, and customizable.
Add high-end depth and dynamic interaction to your grids and features using a 3D Tilt Card. Leveraging Framer Motion's hardware-accelerated transforms, this component reacts dynamically to the user's cursor position by tilting in 3D space, complete with a glossy, light-sheen reflection that moves realistically with the pointer.
Perfect for high-value feature callouts, pricing plan tiers, interactive portfolios, or highlighting prominent dashboard cards.
Implementation
Usage
Interactive Feature Cards
Hover over these cards to see them rotate in 3D space with a soft light sheen follow effect. Note the 3D translation depth on icons and headings.
High Performance
Leverages native GPU layers and hardware-accelerated transforms for ultra-smooth 60fps interaction.
Secure By Default
Strict sanitization, clean dependency footprint, and zero layout shifts out of the box.
Real-time Insights
Monitor your components and interactions on the fly with built-in analytics callbacks.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | — | Card content |
className | string | "" | Additional CSS custom classes |
maxTilt | number | 15 | Maximum tilt degrees along X and Y axes |
perspective | number | 1000 | Perspective depth of the 3D space in pixels |
scale | number | 1.02 | Card scale scale-factor when hovered |
glareEnable | boolean | true | Enables or disables the dynamic moving light reflection |
glareColor | string | "rgba(255, 255, 255, 0.15)" | Color/transparency overlay of the glare reflection |
glareMaxOpacity | number | 0.35 | Maximum opacity when light glare is fully visible |
springConfig | object | { stiffness: 150, damping: 20 } | Custom configuration options for rotation smoothing |