About
A hover-triggered preview card that shows a link's content with a spring-physics entrance and exit animation.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Motion Hover Card to your project and fits it to your theme.
Code
How Motion Hover Card is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import {
HoverCard,
HoverCardContent,
HoverCardTrigger,
} from "@/components/ui/motion-hover-card";
export default function HoverCardDemo() {
return (
<div className="flex min-h-[200px] w-full items-center justify-center">
<HoverCard>
<HoverCardTrigger
render={
<a
href="https://nextjs.org"
target="_blank"
rel="noreferrer"
className="text-primary font-medium underline-offset-4 hover:underline"
>
@nextjs
</a>
}
/>
<HoverCardContent className="w-80">
<div className="space-y-1">
<h4 className="text-sm font-semibold">@nextjs</h4>
<p className="text-sm">
The React Framework – created and maintained by Vercel.
</p>
<p className="text-muted-foreground pt-2 text-xs">
Joined December 2021
</p>
</div>
</HoverCardContent>
</HoverCard>
</div>
);
}
















