CSS components

Frosted Glass Navbar Generator

Create the translucent blurred header seen on modern sites. Tune the blur, tint and saturation, choose a full-width or floating bar, and get a working hamburger menu for phones.

Scroll inside the preview to see the colourful content blur behind the bar, and switch to Mobile to try the menu.

Live preview

Runs entirely in your browser. Nothing is uploaded to any server.

Why use a frosted navbar

Modern look

Content softly shows through the bar as you scroll.

Always reachable

The sticky bar keeps navigation one tap away.

Works on phones

A real hamburger button with aria-expanded opens the menu.

How to create a frosted glass navbar

  1. Add brand and linksEnter your brand, the menu links and an optional button.
  2. Tune the glassAdjust blur, saturation, tint colour and opacity.
  3. Copy the codePaste the header at the top of your body and add the CSS and script.

How the frosted glass effect works

backdrop-filter applies filters to whatever is behind an element. A blur softens the content under the bar, and a saturation boost above 100% keeps colours rich instead of washed out. The semi-transparent tint on top gives the bar enough contrast for the links.

Older browsers that do not support backdrop-filter get a nearly opaque background through an @supports rule, so the text stays readable. Safari still needs the -webkit- prefix, which is included.

Tint opacity

Lower values look glassier, higher values read better on busy pages.

Floating style

A rounded bar with a gap from the top and sides.

Scroll shadow

A soft shadow appears once the page has scrolled.

Frosted navbar FAQ

Why does my navbar not look blurred?

The blur only shows when there is content behind the bar. On a plain white page it looks like a normal header.

Which browsers support backdrop-filter?

All current versions of Chrome, Edge, Safari and Firefox. Older browsers fall back to a solid background.

Is backdrop-filter bad for performance?

Large blur values on big areas can cost some performance on low-end phones. Values between 8 and 20 pixels are a good balance.

How do I make the navbar dark?

Choose a dark tint colour such as #111827 and a light text colour.

Why is position sticky not working?

Sticky stops working when a parent element has overflow hidden. Keep the header as a direct child of body.

Try other CSS component tools

More free tools from My Panda Toolbox.