lucasbassetti

Animated Tooltip

Cards 7

About

A hover/focus tooltip that springs in and tilts in 3D as the pointer moves across its trigger element.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Animated Tooltip to your project and fits it to your theme.

Code

How Animated Tooltip is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import { AnimatedTooltip } from "@/components/ui/animated-tooltip";

const team = [
  {
    name: "Ada Lovelace",
    role: "Design Engineer",
    initials: "AL",
    gradient: "from-indigo-500 to-violet-500",
  },
  {
    name: "Grace Hopper",
    role: "Staff Engineer",
    initials: "GH",
    gradient: "from-rose-500 to-orange-500",
  },
  {
    name: "Alan Turing",
    role: "Founder",
    initials: "AT",
    gradient: "from-emerald-500 to-teal-500",
  },
];

export default function AnimatedTooltipDemo() {
  return (
    <div className="flex h-screen w-full items-center justify-center bg-background">
      <div className="flex">
        {team.map((m) => (
          <AnimatedTooltip
            key={m.name}
            className="-ml-3 first:ml-0"
            content={
              <span className="flex flex-col">
                <span className="font-semibold">{m.name}</span>
                <span className="text-background/70">{m.role}</span>
              </span>
            }
          >
            <span
              className={`flex size-12 items-center justify-center rounded-full bg-gradient-to-br ${m.gradient} text-sm font-semibold text-white ring-2 ring-background`}
            >
              {m.initials}
            </span>
          </AnimatedTooltip>
        ))}
      </div>
    </div>
  );
}

Dependencies

More by lucasbassetti

View all
  • Multi Button

    Multi Button

    26
  • Magic Button

    Magic Button

    13
  • Mask Button

    Mask Button

    11
  • Progress Fold Button

    Progress Fold Button

    4
  • Bento Grid

    Bento Grid

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.2K
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    395
  • Stats cards with links

    Stats cards with links

    128
  • Card Studio

    Card Studio

    14
  • Statistics Card 2

    Statistics Card 2

    291
  • Statistics Card 10

    Statistics Card 10

    280
  • Card

    Card

    70
  • The Item one

    The Item one

    3