Hovercard3
Hovercard3 is a React and Tailwind CSS card component from UI Layouts, licensed MIT. Copy it and paste it into your project.
UI Layouts
MIT
cards
What it is
Hovercard3 is a React and Tailwind CSS card component from UI Layouts, 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.
Five free copies a month. No card.
Needs
npm i motion
Licence
This component comes from UI Layouts and is redistributed under the MIT licence, which permits commercial use. The copyright notice travels with the code.
Hovercard3
import { ChevronsRight, Heart } from 'lucide-react';
import Image from 'next/image';
import React, { useState } from 'react';
function HoverCard3() {
return (
<>
<div className='w-[400px] relative mt-4 h-[450px] overflow-hidden group mx-auto dark:bg-black bg-white dark:border-0 border rounded-md dark:text-white text-black flex flex-col'>
<div className='w-full h-full '>
<Image
src={
'https://images.unsplash.com/photo-1583071299210-c6c113f4ac91?q=80&w=800&auto=format&fit=crop'
}
alt='shoes'
width={600}
height={600}
className='h-full w-full scale-105 group-hover:scale-100 object-cover transition-all duration-300 rounded-md'
/>
</div>
<article className='p-8 w-full h-full overflow-hidden z-10 absolute top-0 flex flex-col justify-end rounded-md bg-[#c34c32] opacity-0 group-hover:opacity-100 transition-all duration-300'>
<div className='translate-y-10 group-hover:translate-y-0 transition-all duration-300 space-y-2'>
<h1 className='md:text-2xl font-semibold'>Who We are</h1>
<p className='sm:text-base text-sm'>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ad consectetur ducimus vel
nemo deserunt possimus inventore ipsum nostrum. Sapiente, facilis?
</p>
<button className='p-2 bg-black flex rounded-md text-white'>
Learn More <ChevronsRight />
</button>
</div>
</article>
<article className='p-2 w-full h-[20%] flex flex-col justify-end overflow-hidden absolute bottom-0 rounded-b-md bg-linear-to-t from-[#c34c32] opacity-100 group-hover:opacity-0 group-hover:-bottom-4 transition-all duration-300'>
<h1 className='md:text-2xl font-semibold'>Naymur Rahman</h1>
<p className='sm:text-base text-sm'>CEO & Design Engineer</p>
</article>
</div>
</>
);
}
export default HoverCard3;