Tilt On Hover
Tilt On Hover is a React and Tailwind CSS card component from Motion Primitives, licensed MIT. Copy it and paste it into your project.
Motion Primitives
MIT
cards
What it is
Tilt On Hover is a React and Tailwind CSS card component from Motion Primitives, licensed MIT. Copy it and paste it into your project.
How to use it
Open it in the catalogue, press copy, and paste it into your project. The prompt you copy carries the code and the rules that tell your agent to reproduce it without changing anything.
Four free copies a week. No card.
No packages beyond the project baseline
Licence
This component comes from Motion Primitives and is redistributed under the MIT licence, which permits commercial use. The copyright notice travels with the code.
Tilt On Hover
import { Tilt } from '@/components/core/tilt';
export function TiltCard1() {
return (
<Tilt rotationFactor={8} isRevese>
<div
style={{
borderRadius: '12px',
}}
className='flex max-w-[270px] flex-col overflow-hidden border border-zinc-950/10 bg-white dark:border-zinc-50/10 dark:bg-zinc-900'
>
<img
src='https://images.beta.cosmos.so/f7fcb95d-981b-4cb3-897f-e35f6c20e830?format=jpeg'
alt='Ghost in the shell - Kôkaku kidôtai'
className='h-48 w-full object-cover'
/>
<div className='p-2'>
<h1 className='font-mono leading-snug text-zinc-950 dark:text-zinc-50'>
Ghost in the Shell
</h1>
<p className='text-zinc-700 dark:text-zinc-400'>Kôkaku kidôtai</p>
</div>
</div>
</Tilt>
);
}