Navbars
2 / 7

Navbar Underline

A navigation bar with underline indicators for active and hover states. A thin line appears below the selected link.

Each nav link has an absolutely positioned span at the bottom that serves as the underline indicator. When a link is active, this span becomes visible with a solid color. Inactive links have transparent underlines.

The underline uses CSS transitions for smooth show/hide. Links also have subtle vertical hover animations with whileHover moving them slightly up. Text color changes on hover from muted to full contrast.

The layout follows a standard structure with logo left, nav center, and CTA right. The header has a card background with rounded corners and border.

The mobile version uses a hamburger menu with vertical link layout. Works well for minimal designs, portfolio sites, or anywhere you want a subtle but clear indication of current location.

Included with All-Access

One payment unlocks the code for this block and every other block, template and page.

Get All-Access

About this block

Each nav link has an absolutely positioned span at the bottom that serves as the underline indicator. When a link is active, this span becomes visible with a solid color. Inactive links have transparent underlines.

The underline uses CSS transitions for smooth show/hide. Links also have subtle vertical hover animations with whileHover moving them slightly up. Text color changes on hover from muted to full contrast.

The layout follows a standard structure with logo left, nav center, and CTA right. The header has a card background with rounded corners and border.

The mobile version uses a hamburger menu with vertical link layout. Works well for minimal designs, portfolio sites, or anywhere you want a subtle but clear indication of current location.

Access an ever-growing collection of premium, meticulously crafted templates and Component Blocks.

A product by Aceternity
Building in public at @mannupaaji

© 2026 Aceternity Labs LLC. All Rights Reserved.