pacekit

Motion Hover Card

Cards

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>
  );
}

Dependencies

More by pacekit

View all
  • AI Response Writer

    AI Response Writer

    364
  • Mouse Wave Text

    Mouse Wave Text

    24
  • Bouncing Text

    Bouncing Text

    23
  • Gradient Shadow

    Gradient Shadow

    16
  • Scramble Text

    Scramble Text

    15
  • AI Suggestions

    AI Suggestions

    9
  • Squash Text

    Squash Text

    8
  • AI Model Selector

    AI Model Selector

    4

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.4K
  • Statistics Card 2

    Statistics Card 2

    322
  • Card

    Card

    19
  • Stats cards with links

    Stats cards with links

    46
  • Admin Dashboard Cards

    Admin Dashboard Cards

    46
  • Model Grid Cards

    Model Grid Cards

    6
  • Card

    Card

    2
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    781