Wensity Labs

Underline Animation

Navigation 3

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

    422
  • Calendar

    Calendar

    309
  • Button

    Button

    151
  • Color Picker

    Color Picker

    103
  • AI Prompt Input

    AI Prompt Input

    87
  • Image Comparison Slider

    Image Comparison Slider

    86
  • Text Morphing

    Text Morphing

    65
  • Carousel

    Carousel

    59

More in Navigation

View all
  • Footer with Big Wordmark

    Footer with Big Wordmark

    100
  • Liquid Glass Expandable Sidebar

    Liquid Glass Expandable Sidebar

    295
  • Pagination with Ellipsis

    Pagination with Ellipsis

    25
  • Pagination

    Pagination

    3
  • Tabs

    Tabs

    33
  • Menu

    Menu

    23
  • Breadrcrumb

    Breadrcrumb

    6
  • NavBar

    NavBar

    2