Hover Reveal Details Card
Animated card with gesture animations, Reveals hidden content and scale main image on hover gesture.
Loading...
Installation
Usage
<CardHoverReveal className="h-[512px] w-[385px] rounded-xl">
<CardHoverRevealMain hoverScale={1.2}>
<img
width={1077}
height={606}
alt="product image"
src="https://images.unsplash.com/photo-1619551734325-81aaf323686c?q=80&w=2549&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"
className="inline-block size-full max-h-full max-w-full object-cover align-middle"
/>
</CardHoverRevealMain>
<CardHoverRevealContent className="space-y-4 rounded-2xl bg-black/80 text-secondary/80 p-4">
<div className="space-y-2">
<h3 className="text-sm ">Services</h3>
<div className="flex flex-wrap gap-2 ">
<div className=" rounded-full bg-secondary-foreground px-2 py-1">
<p className=" text-xs leading-normal">Branding</p>
</div>
<div className=" rounded-full bg-secondary-foreground px-2 py-1">
<p className=" text-xs leading-normal">3D Modeling</p>
</div>
</div>
</div>
<div className="space-y-2">
<h3 className=" text-sm ">Stack</h3>
<div className="flex flex-wrap gap-2 ">
<div className=" rounded-full bg-primary px-2 py-1">
<p className=" text-xs leading-normal">Auto CAD</p>
</div>
<div className=" rounded-full bg-primary px-2 py-1">
<p className=" text-xs leading-normal">Key Shot</p>
</div>
<div className=" rounded-full bg-primary px-2 py-1">
<p className=" text-xs leading-normal">In Design</p>
</div>
</div>
</div>
<div className="space-y-2">
<h3 className="text-sm ">Profile</h3>
{/* tag */}
<div className="flex flex-wrap gap-2 ">
<p className="text-sm text-secondary">
Comprehensive platform designed for an agency, Creating professional
and business-oriented brand.
</p>
</div>
</div>
</CardHoverRevealContent>
</CardHoverReveal>Examples
Loading...
Props
CardHoverRevealMain
| Prop | Type | Default |
|---|---|---|
initialScale? | number | 1 |
hoverScale? | number | 1.05 |