Wensity Labs

Underline Animation

Navigation 6

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

    444
  • Calendar

    Calendar

    343
  • Button

    Button

    169
  • Color Picker

    Color Picker

    114
  • Image Comparison Slider

    Image Comparison Slider

    92
  • AI Prompt Input

    AI Prompt Input

    88
  • Text Morphing

    Text Morphing

    69
  • Carousel

    Carousel

    65

More in Navigation

View all
  • Footer with Big Wordmark

    Footer with Big Wordmark

    169
  • Liquid Glass Expandable Sidebar

    Liquid Glass Expandable Sidebar

    442
  • Meniscus — Liquid Bottom Navigation Bar

    Meniscus — Liquid Bottom Navigation Bar

    33
  • Tabs

    Tabs

    38
  • Pagination

    Pagination

    121
  • Sidebar

    Sidebar

    367
  • Stacked Circular Footer

    Stacked Circular Footer

    469
  • Liquid Glass Tab Bar

    Liquid Glass Tab Bar

    308