Wensity Labs

Underline Animation

Navigation 4

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

    434
  • Calendar

    Calendar

    323
  • Button

    Button

    161
  • Color Picker

    Color Picker

    108
  • Image Comparison Slider

    Image Comparison Slider

    90
  • AI Prompt Input

    AI Prompt Input

    87
  • Text Morphing

    Text Morphing

    66
  • Carousel

    Carousel

    64

More in Navigation

View all
  • Footer with Big Wordmark

    Footer with Big Wordmark

    137
  • Liquid Glass Expandable Sidebar

    Liquid Glass Expandable Sidebar

    372
  • Tabs

    Tabs

    18
  • Footer Section

    Footer Section

  • Pagination with Ellipsis

    Pagination with Ellipsis

    31
  • NavBar

    NavBar

    2
  • Meniscus — Liquid Bottom Navigation Bar

    Meniscus — Liquid Bottom Navigation Bar

    2
  • Button Breadcrumb

    Button Breadcrumb

    44