Hovering Card
The hovering card provides an interactive 3D card effect that responds to mouse movements, creating an engaging user experience.
PlaygroundOpen in

V3cn
Here you will get components which you wont get anywhere.
Made by Vineet
Installation
V3CN
pnpm dlx v3cn add card
Shadcn
pnpm dlx shadcn@latest add 'https://v3cn.vineet.pro/r/card'
Usage Examples
Default Usage
<div className="flex justify-center items-center h-fit py-7 w-full px-2 ">
<div className="relative cursor-pointer animate-float md:block mr-8">
<CardContainer className=" cursor-pointer">
<div className="px-8 py-7 max-w-[400px] border-solid gap-5 bg-black flex flex-col justify-start item-center border-2 rounded-2xl">
<CardItem>
<Image
src="https://v3cn.vineet.pro/image/V.png"
alt="hvbjn"
width={400}
height={400}
className="rounded-[3rem]"
/>
</CardItem>
<div className="px-4 flex flex-col justify-center items-start gap-5">
<h1 className="text-4xl text-white font-bold">V3cn</h1>
<h4 className="text-lg text-white">
Here you will get components which you wont get anywhere.
</h4>
<p className="text-purple-400">Made by Vineet</p>
</div>
</div>
</CardContainer>
</div>
</div>
When using compound components:
Make sure that you have installed your modules first and followed the introduction.
<Card />
childrenReact.ReactNode
Default: undefined
The content to be displayed within the card container.
classNamestring
Default: undefined
Custom CSS classes to apply to the card container for styling.
containerClassNamestring
Default: undefined
Custom CSS classes to apply to the outer container that manages the perspective effect.