Wensity Labs

Underline Animation

Navigation 1

About

An animated CSS hover underline for links with multiple motion styles (slide, center, fill, wavy, gradient) that supports active/current-page state and respects reduced motion.

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

Code

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

Usage.tsx

import { UnderlineAnimation } from "@/components/ui/underline-animation";

export default function UnderlineAnimationDemo() {
  return (
    <nav className="flex gap-6 text-lg font-medium">
      <UnderlineAnimation href="/work" active>
        Work
      </UnderlineAnimation>
      <UnderlineAnimation href="/studio">Studio</UnderlineAnimation>
      <UnderlineAnimation href="/journal" variant="center">
        Journal
      </UnderlineAnimation>
      <UnderlineAnimation href="/contact" variant="gradient">
        Contact
      </UnderlineAnimation>
    </nav>
  );
}

More by Wensity Labs

View all
  • Sidebar

    Sidebar

    347
  • Calendar

    Calendar

    239
  • Button

    Button

    108
  • Color Picker

    Color Picker

    85
  • Image Comparison Slider

    Image Comparison Slider

    77
  • AI Prompt Input

    AI Prompt Input

    64
  • Text Morphing

    Text Morphing

    50
  • Carousel

    Carousel

    48

More in Navigation

View all
  • Pagination

    Pagination

    101
  • Oversized 404 Numeral

    Oversized 404 Numeral

    69
  • Breadcramb

    Breadcramb

    41
  • Navbar with Theme Toggle

    Navbar with Theme Toggle

    57
  • Sidebar

    Sidebar

    355
  • Dorpdown Navigation

    Dorpdown Navigation

    235
  • Tabs like bookmark

    Tabs like bookmark

    75
  • Stacked Circular Footer

    Stacked Circular Footer

    444