Skip to content

Glass Navbar

Frosted-glass sticky navigation bar with a glowing active pill and animated hamburger for mobile.

Glass Navbar

by FreeCsStyles Dev's

NavigationGlassmorphism
🌐
#glass#navbar#sticky#responsive#mobile

Embed this component

Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/glass-navbar.

<iframe src="/embed/glass-navbar" sandbox="allow-scripts" loading="lazy" title="Glass Navbar" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>

Implementation code

Copy the HTML and CSS for Glass Navbar. The HTML and CSS variants are self-contained; framework variants assume that framework's project setup.

HTML
<nav class="glass-nav">
  <a class="brand" href="#">Glassy</a>
  <div class="nav-links">
    <a class="active" href="#">Home</a>
    <a href="#">Explore</a>
    <a href="#">Pricing</a>
    <a href="#">About</a>
  </div>
  <button class="nav-cta">Sign In</button>
  <div class="nav-burger"><span></span><span></span><span></span></div>
</nav>
CSS
.glass-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active {
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.nav-cta {
  padding: 8px 18px;
  border: none;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  background: #0f172a;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.nav-cta:hover { transform: translateY(-1px); }

.nav-burger { display: none; cursor: pointer; }
.nav-burger span { display: block; width: 22px; height: 2px; background: rgba(255,255,255,0.7); margin: 4px 0; border-radius: 2px; transition: all 0.3s; }

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
}

Where Glass Navbar fits

  • Site Header
  • App Shell
  • Marketing Sites

Topics

  • #glass
  • #navbar
  • #sticky
  • #responsive
  • #mobile