Glassmorphic Navigation Menu

Frosted glass bar with strong backdrop-blur and gradient overlay. Scroll down to see content blur behind the nav.

Overview

This navigation uses a true glassmorphic style: a semi-transparent bar with backdrop-filter: blur() so the page content behind it is visibly frosted as you scroll. The bar has a light gradient overlay and a soft inner highlight to read as glass.

Scroll slowly and watch the headings and blocks below blur under the nav for the full effect.

Design principles

Glassmorphism works best when there is real content or color behind the panel. The more contrast and detail in the background, the more obvious the blur. Here we use alternating section backgrounds and card grids so the nav passes over different tones.

Implementation

The bar is position: sticky so it stays at the top of the viewport while you scroll. Combined with a transparent background and backdrop-filter: blur(24px), the content underneath is blurred in real time. A subtle border and inset highlight complete the frosted look.

Dropdowns and mobile

Dropdown menus use the same glass treatment so they feel part of the same system. On small screens, the hamburger toggles the menu with a smooth transition; the icon animates to an X when open. All of this is done with HTML and CSS only.

Further reading

Try resizing the window to see the mobile menu. Keep scrolling to watch the nav float over more content and notice how the blur and saturation make the glass effect stand out against different backgrounds.