The TiltCard component creates a highly tactile 3D hover effect. As the user moves their cursor over the card, the card physically tilts towards (or away from) the cursor, complete with a subtle gloss overlay that reacts to the lighting angle. Now featuring 3 interactive depth variants.
Live Preview
Interactive Depth
Framer Motion spring physics create an incredibly smooth 3D hovering experience.
variant="standard"
Standard Tilt:Tilts towards your cursor creating a 3D popping effect.
Usage Guide
1. Import the Component
Import the component into your React or Next.js page:
import { TiltCard } from "@/components/creative/tilt-card";
2. Implementation Example
Render the component and customize its behavior by passing props:
import { TiltCard } from "@/components/creative/tilt-card";
export default function Example() {
return (
<div className="w-full flex items-center justify-center p-8">
<TiltCard
tiltIntensity{10}
speed{10}
scale{10}
>
<div>Content goes here</div>
</TiltCard>
</div>
);
}