8 CSS Navbar Designs03 / 08

Pure CSSMIT licensed

Glassmorphism CSS Navbar

A pill-shaped glassmorphism navbar UI floating 20px above the wrapper edge, built with backdrop-filter:blur() over a living aurora gradient background — proving that frosted-glass navbars composite cleanly against any vibrant scene. Four blurred radial-gradient orbs (violet, cyan, rose, green) drift in mix-blend-mode:screen across a deep #050311 backdrop, with a fractal noise overlay for grain. The pill nav itself has Syne wordmark + cyan dot, divider rule, link list with active-pill state + glowing cyan dot indicator, two has-drop dropdown triggers that reveal nested glassmorphic panels with icon tiles (⚡ Analytics, 🧠 AI Studio, 🔗 Integrations / 🏢 Enterprise, 🚀 Startups, 🎓 Education), Search + Theme icon buttons, and a cyan-to-violet gradient "Get Started" CTA. Below, a gradient-clipped "Build the future, fast." hero with three frosted demo cards. Syne + Inter. Best for SaaS product sites, AI/ML company landing pages, modern marketing chrome, cyberpunk-inflected dashboards.

Published Updated

Live Demo
Try it

This is a full-page demo — interact inside the frame above, or open it in the playground for the full-screen experience.

The code

<section class="nb-gls" aria-label="Nova glass pill navbar demo">
  <div class="bg-scene" aria-hidden="true">
    <div class="aurora a1"></div>
    <div class="aurora a2"></div>
    <div class="aurora a3"></div>
    <div class="aurora a4"></div>
  </div>

  <nav aria-label="Primary">
    <div class="nav-inner">
      <a href="#" class="brand">Nōva<span class="brand-dot" aria-hidden="true"></span></a>
      <div class="nav-divider" aria-hidden="true"></div>
      <ul class="nav-links" role="menubar">
        <li role="none"><a href="#" class="active" role="menuitem">Home</a></li>
        <li class="has-drop" role="none">
          <a href="#" role="menuitem">
            Products
            <span class="drop-arrow" aria-hidden="true"><svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="6 9 12 15 18 9"/></svg></span>
          </a>
          <div class="drop-menu" role="menu">
            <a href="#" role="menuitem"><span class="drop-icon">⚡</span> Analytics</a>
            <a href="#" role="menuitem"><span class="drop-icon">🧠</span> AI Studio</a>
            <a href="#" role="menuitem"><span class="drop-icon">🔗</span> Integrations</a>
            <div class="drop-divider" aria-hidden="true"></div>
            <a href="#" role="menuitem"><span class="drop-icon">📦</span> All Products</a>
          </div>
        </li>
        <li class="has-drop" role="none">
          <a href="#" role="menuitem">
            Solutions
            <span class="drop-arrow" aria-hidden="true"><svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="6 9 12 15 18 9"/></svg></span>
          </a>
          <div class="drop-menu" role="menu">
            <a href="#" role="menuitem"><span class="drop-icon">🏢</span> Enterprise</a>
            <a href="#" role="menuitem"><span class="drop-icon">🚀</span> Startups</a>
            <a href="#" role="menuitem"><span class="drop-icon">🎓</span> Education</a>
          </div>
        </li>
        <li role="none"><a href="#" role="menuitem">Pricing</a></li>
        <li role="none"><a href="#" role="menuitem">Docs</a></li>
      </ul>
      <div class="nav-spacer"></div>
      <div class="nav-actions">
        <button class="action-icon" type="button" aria-label="Search">
          <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>
        </button>
        <button class="action-icon" type="button" aria-label="Theme">
          <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg>
        </button>
        <button class="btn-launch" type="button">Get Started →</button>
      </div>
    </div>
  </nav>

  <div class="page">
    <div class="pill-badge">Now in public beta</div>
    <h1 class="hero-title">Build the<br><span class="gradient-text">future, fast.</span></h1>
    <p class="hero-sub">The glassmorphic navbar adapts elegantly to any vibrant background — see how the frosted blur composites perfectly against live aurora gradients.</p>
    <div class="demo-cards">
      <div class="demo-card">
        <div class="demo-card-icon">⚡</div>
        <div class="demo-card-label">Speed</div>
        <div class="demo-card-val">12ms avg response</div>
      </div>
      <div class="demo-card">
        <div class="demo-card-icon">🔒</div>
        <div class="demo-card-label">Secure</div>
        <div class="demo-card-val">SOC2 Type II</div>
      </div>
      <div class="demo-card">
        <div class="demo-card-icon">🌐</div>
        <div class="demo-card-label">Global</div>
        <div class="demo-card-val">48 edge nodes</div>
      </div>
    </div>
  </div>
</section>
/* ─── 03 Nōva — glassmorphism floating pill navbar UI ──────────── */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Inter:wght@300;400;500&display=swap');

.nb-gls {
  --nb-gls-glass-bg: rgba(255,255,255,0.07);
  --nb-gls-glass-border: rgba(255,255,255,0.14);
  --nb-gls-glass-shadow: rgba(0,0,0,0.2);
  --nb-gls-text-primary: rgba(255,255,255,0.95);
  --nb-gls-text-muted: rgba(255,255,255,0.55);
  --nb-gls-accent-cyan: #00f0ff;
  --nb-gls-accent-violet: #c77dff;
  --nb-gls-accent-rose: #ff6b9d;
  --nb-gls-nav-h: 68px;
  position: relative;
  width: 100%;
  min-height: 720px;
  background: #050311;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
  box-sizing: border-box;
}

.nb-gls *,
.nb-gls *::before,
.nb-gls *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.nb-gls .bg-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #050311;
  overflow: hidden;
}

.nb-gls .aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: screen;
  animation: nb-gls-float var(--dur, 14s) ease-in-out infinite alternate;
}

@keyframes nb-gls-float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(var(--tx, 40px), var(--ty, 30px)) scale(var(--s, 1.1));
  }
}

.nb-gls .a1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #6e00ff 0%, transparent 70%);
  top: -200px;
  left: -100px;
  --dur: 18s;
  --tx: 60px;
  --ty: 50px;
  --s: 1.2;
  opacity: 0.5;
}

.nb-gls .a2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #00c8ff 0%, transparent 70%);
  top: 100px;
  right: -150px;
  --dur: 22s;
  --tx: -80px;
  --ty: 60px;
  --s: 1.15;
  opacity: 0.45;
}

.nb-gls .a3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #ff0080 0%, transparent 70%);
  bottom: -100px;
  left: 30%;
  --dur: 16s;
  --tx: -50px;
  --ty: -40px;
  --s: 1.3;
  opacity: 0.35;
}

.nb-gls .a4 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #00ff88 0%, transparent 70%);
  bottom: 200px;
  right: 20%;
  --dur: 20s;
  --tx: 30px;
  --ty: -60px;
  --s: 1.1;
  opacity: 0.25;
}

.nb-gls .bg-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

.nb-gls nav {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 48px);
  max-width: 1200px;
  height: var(--nb-gls-nav-h);
  background: var(--nb-gls-glass-bg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--nb-gls-glass-border);
  border-radius: 20px;
  box-shadow: 0 8px 32px var(--nb-gls-glass-shadow), inset 0 1px 0 rgba(255,255,255,0.12), 0 0 0 1px rgba(255,255,255,0.04);
}

.nb-gls nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,240,255,0.5), rgba(199,125,255,0.5), transparent);
  border-radius: 0 0 50% 50%;
}

.nb-gls .nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 0;
}

.nb-gls .brand {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--nb-gls-text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  position: relative;
}

.nb-gls .brand-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--nb-gls-accent-cyan);
  border-radius: 50%;
  margin-left: 2px;
  box-shadow: 0 0 10px var(--nb-gls-accent-cyan);
  vertical-align: middle;
  margin-bottom: 3px;
}

.nb-gls .nav-divider {
  width: 1px;
  height: 24px;
  background: var(--nb-gls-glass-border);
  margin: 0 1.5rem;
  flex-shrink: 0;
}

.nb-gls .nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  flex: 1;
}

.nb-gls .nav-links a {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--nb-gls-text-muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
  position: relative;
  white-space: nowrap;
}

.nb-gls .nav-links a:hover {
  color: var(--nb-gls-text-primary);
  background: rgba(255,255,255,0.08);
}

.nb-gls .nav-links a.active {
  color: var(--nb-gls-text-primary);
  background: rgba(255,255,255,0.1);
}

.nb-gls .nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--nb-gls-accent-cyan);
  box-shadow: 0 0 8px var(--nb-gls-accent-cyan);
}

.nb-gls .has-drop {
  position: relative;
}

.nb-gls .has-drop > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nb-gls .drop-arrow {
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.nb-gls .has-drop:hover .drop-arrow {
  transform: rotate(180deg);
}

.nb-gls .drop-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 200px;
  background: rgba(10,6,30,0.7);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid var(--nb-gls-glass-border);
  border-radius: 16px;
  padding: 8px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top left;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
}

.nb-gls .has-drop:hover .drop-menu,
.nb-gls .has-drop:focus-within .drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.nb-gls .drop-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--nb-gls-text-muted);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nb-gls .drop-menu a:hover {
  background: rgba(255,255,255,0.07);
  color: var(--nb-gls-text-primary);
}

.nb-gls .drop-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.nb-gls .drop-divider {
  height: 1px;
  background: var(--nb-gls-glass-border);
  margin: 6px 0;
}

.nb-gls .nav-spacer {
  flex: 1;
  min-width: 1rem;
}

.nb-gls .nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nb-gls .action-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--nb-gls-glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nb-gls-text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.nb-gls .action-icon:hover {
  background: rgba(255,255,255,0.12);
  color: var(--nb-gls-text-primary);
  border-color: rgba(255,255,255,0.25);
}

.nb-gls .btn-launch {
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #050311;
  background: linear-gradient(135deg, var(--nb-gls-accent-cyan), var(--nb-gls-accent-violet));
  border: none;
  border-radius: 12px;
  padding: 9px 18px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(0,240,255,0.3);
  white-space: nowrap;
}

.nb-gls .btn-launch:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.nb-gls .page {
  position: relative;
  z-index: 1;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 120px;
  text-align: center;
  gap: 2rem;
}

.nb-gls .pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--nb-gls-accent-cyan);
  background: rgba(0,240,255,0.08);
  border: 1px solid rgba(0,240,255,0.2);
  border-radius: 100px;
  padding: 6px 16px;
}

.nb-gls .pill-badge::before {
  content: '◉';
  font-size: 0.6rem;
  animation: nb-gls-pulse 2s ease-in-out infinite;
}

@keyframes nb-gls-pulse {
  0%,
    100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.nb-gls .hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 800;
  color: var(--nb-gls-text-primary);
  line-height: 1;
  letter-spacing: -0.03em;
}

.nb-gls .hero-title .gradient-text {
  background: linear-gradient(135deg, var(--nb-gls-accent-cyan), var(--nb-gls-accent-violet), var(--nb-gls-accent-rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nb-gls .hero-sub {
  font-size: 1.1rem;
  color: var(--nb-gls-text-muted);
  max-width: 50ch;
  line-height: 1.7;
}

.nb-gls .demo-cards {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.nb-gls .demo-card {
  background: var(--nb-gls-glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--nb-gls-glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  width: 160px;
  text-align: left;
  transition: transform 0.2s, border-color 0.2s;
}

.nb-gls .demo-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.25);
}

.nb-gls .demo-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.nb-gls .demo-card-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--nb-gls-text-primary);
  margin-bottom: 0.25rem;
}

.nb-gls .demo-card-val {
  font-size: 0.7rem;
  color: var(--nb-gls-text-muted);
}

@media (max-width: 768px) {
  .nb-gls nav {
    width: calc(100% - 24px);
    top: 12px;
  }

  .nb-gls .nav-links .has-drop,
    .nb-gls .nav-links li:not(.has-drop):nth-child(n+4) {
    display: none;
  }

  .nb-gls .nav-divider {
    display: none;
  }

  .nb-gls .demo-cards {
    display: none;
  }

  .nb-gls .hero-sub {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nb-gls .aurora,
    .nb-gls .pill-badge::before,
    .nb-gls .demo-card {
    animation: none !important;
    transition: none !important;
  }
}
Paste this into ChatGPT, Claude, Cursor, or any coding assistant. The block below is pre-framed with everything the AI needs to integrate this demo into your project — markup, styles, scoping notes, and the source URL. Hit Copy and paste straight into your chat.
Here's a working CSS Navbar Design from CodeFronts. Use it as-is or adapt to your framework. All classes are scoped under a unique prefix so the code won't collide with your existing styles. MIT licensed.
Demo: Glassmorphism CSS Navbar
Source: https://codefronts.com/navigation/css-navbars/glassmorphism-css-navbar/

A pill-shaped glassmorphism navbar UI floating 20px above the wrapper edge, built with backdrop-filter:blur() over a living aurora gradient background — proving that frosted-glass navbars composite cleanly against any vibrant scene. Four blurred radial-gradient orbs (violet, cyan, rose, green) drift in mix-blend-mode:screen across a deep #050311 backdrop, with a fractal noise overlay for grain. The pill nav itself has Syne wordmark + cyan dot, divider rule, link list with active-pill state + glowing cyan dot indicator, two has-drop dropdown triggers that reveal nested glassmorphic panels with icon tiles (⚡ Analytics, 🧠 AI Studio, 🔗 Integrations / 🏢 Enterprise, 🚀 Startups, 🎓 Education), Search + Theme icon buttons, and a cyan-to-violet gradient "Get Started" CTA. Below, a gradient-clipped "Build the future, fast." hero with three frosted demo cards. Syne + Inter. Best for SaaS product sites, AI/ML company landing pages, modern marketing chrome, cyberpunk-inflected dashboards.
## HTML
```html
<section class="nb-gls" aria-label="Nova glass pill navbar demo">
  <div class="bg-scene" aria-hidden="true">
    <div class="aurora a1"></div>
    <div class="aurora a2"></div>
    <div class="aurora a3"></div>
    <div class="aurora a4"></div>
  </div>

  <nav aria-label="Primary">
    <div class="nav-inner">
      <a href="#" class="brand">Nōva<span class="brand-dot" aria-hidden="true"></span></a>
      <div class="nav-divider" aria-hidden="true"></div>
      <ul class="nav-links" role="menubar">
        <li role="none"><a href="#" class="active" role="menuitem">Home</a></li>
        <li class="has-drop" role="none">
          <a href="#" role="menuitem">
            Products
            <span class="drop-arrow" aria-hidden="true"><svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="6 9 12 15 18 9"/></svg></span>
          </a>
          <div class="drop-menu" role="menu">
            <a href="#" role="menuitem"><span class="drop-icon">⚡</span> Analytics</a>
            <a href="#" role="menuitem"><span class="drop-icon">🧠</span> AI Studio</a>
            <a href="#" role="menuitem"><span class="drop-icon">🔗</span> Integrations</a>
            <div class="drop-divider" aria-hidden="true"></div>
            <a href="#" role="menuitem"><span class="drop-icon">📦</span> All Products</a>
          </div>
        </li>
        <li class="has-drop" role="none">
          <a href="#" role="menuitem">
            Solutions
            <span class="drop-arrow" aria-hidden="true"><svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><polyline points="6 9 12 15 18 9"/></svg></span>
          </a>
          <div class="drop-menu" role="menu">
            <a href="#" role="menuitem"><span class="drop-icon">🏢</span> Enterprise</a>
            <a href="#" role="menuitem"><span class="drop-icon">🚀</span> Startups</a>
            <a href="#" role="menuitem"><span class="drop-icon">🎓</span> Education</a>
          </div>
        </li>
        <li role="none"><a href="#" role="menuitem">Pricing</a></li>
        <li role="none"><a href="#" role="menuitem">Docs</a></li>
      </ul>
      <div class="nav-spacer"></div>
      <div class="nav-actions">
        <button class="action-icon" type="button" aria-label="Search">
          <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>
        </button>
        <button class="action-icon" type="button" aria-label="Theme">
          <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg>
        </button>
        <button class="btn-launch" type="button">Get Started →</button>
      </div>
    </div>
  </nav>

  <div class="page">
    <div class="pill-badge">Now in public beta</div>
    <h1 class="hero-title">Build the<br><span class="gradient-text">future, fast.</span></h1>
    <p class="hero-sub">The glassmorphic navbar adapts elegantly to any vibrant background — see how the frosted blur composites perfectly against live aurora gradients.</p>
    <div class="demo-cards">
      <div class="demo-card">
        <div class="demo-card-icon">⚡</div>
        <div class="demo-card-label">Speed</div>
        <div class="demo-card-val">12ms avg response</div>
      </div>
      <div class="demo-card">
        <div class="demo-card-icon">🔒</div>
        <div class="demo-card-label">Secure</div>
        <div class="demo-card-val">SOC2 Type II</div>
      </div>
      <div class="demo-card">
        <div class="demo-card-icon">🌐</div>
        <div class="demo-card-label">Global</div>
        <div class="demo-card-val">48 edge nodes</div>
      </div>
    </div>
  </div>
</section>
```
## CSS
```css
/* ─── 03 Nōva — glassmorphism floating pill navbar UI ──────────── */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Inter:wght@300;400;500&display=swap');

.nb-gls {
  --nb-gls-glass-bg: rgba(255,255,255,0.07);
  --nb-gls-glass-border: rgba(255,255,255,0.14);
  --nb-gls-glass-shadow: rgba(0,0,0,0.2);
  --nb-gls-text-primary: rgba(255,255,255,0.95);
  --nb-gls-text-muted: rgba(255,255,255,0.55);
  --nb-gls-accent-cyan: #00f0ff;
  --nb-gls-accent-violet: #c77dff;
  --nb-gls-accent-rose: #ff6b9d;
  --nb-gls-nav-h: 68px;
  position: relative;
  width: 100%;
  min-height: 720px;
  background: #050311;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
  box-sizing: border-box;
}

.nb-gls *,
.nb-gls *::before,
.nb-gls *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.nb-gls .bg-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #050311;
  overflow: hidden;
}

.nb-gls .aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: screen;
  animation: nb-gls-float var(--dur, 14s) ease-in-out infinite alternate;
}

@keyframes nb-gls-float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(var(--tx, 40px), var(--ty, 30px)) scale(var(--s, 1.1));
  }
}

.nb-gls .a1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #6e00ff 0%, transparent 70%);
  top: -200px;
  left: -100px;
  --dur: 18s;
  --tx: 60px;
  --ty: 50px;
  --s: 1.2;
  opacity: 0.5;
}

.nb-gls .a2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #00c8ff 0%, transparent 70%);
  top: 100px;
  right: -150px;
  --dur: 22s;
  --tx: -80px;
  --ty: 60px;
  --s: 1.15;
  opacity: 0.45;
}

.nb-gls .a3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #ff0080 0%, transparent 70%);
  bottom: -100px;
  left: 30%;
  --dur: 16s;
  --tx: -50px;
  --ty: -40px;
  --s: 1.3;
  opacity: 0.35;
}

.nb-gls .a4 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #00ff88 0%, transparent 70%);
  bottom: 200px;
  right: 20%;
  --dur: 20s;
  --tx: 30px;
  --ty: -60px;
  --s: 1.1;
  opacity: 0.25;
}

.nb-gls .bg-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

.nb-gls nav {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 48px);
  max-width: 1200px;
  height: var(--nb-gls-nav-h);
  background: var(--nb-gls-glass-bg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--nb-gls-glass-border);
  border-radius: 20px;
  box-shadow: 0 8px 32px var(--nb-gls-glass-shadow), inset 0 1px 0 rgba(255,255,255,0.12), 0 0 0 1px rgba(255,255,255,0.04);
}

.nb-gls nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,240,255,0.5), rgba(199,125,255,0.5), transparent);
  border-radius: 0 0 50% 50%;
}

.nb-gls .nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 0;
}

.nb-gls .brand {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--nb-gls-text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  position: relative;
}

.nb-gls .brand-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--nb-gls-accent-cyan);
  border-radius: 50%;
  margin-left: 2px;
  box-shadow: 0 0 10px var(--nb-gls-accent-cyan);
  vertical-align: middle;
  margin-bottom: 3px;
}

.nb-gls .nav-divider {
  width: 1px;
  height: 24px;
  background: var(--nb-gls-glass-border);
  margin: 0 1.5rem;
  flex-shrink: 0;
}

.nb-gls .nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  flex: 1;
}

.nb-gls .nav-links a {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--nb-gls-text-muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
  position: relative;
  white-space: nowrap;
}

.nb-gls .nav-links a:hover {
  color: var(--nb-gls-text-primary);
  background: rgba(255,255,255,0.08);
}

.nb-gls .nav-links a.active {
  color: var(--nb-gls-text-primary);
  background: rgba(255,255,255,0.1);
}

.nb-gls .nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--nb-gls-accent-cyan);
  box-shadow: 0 0 8px var(--nb-gls-accent-cyan);
}

.nb-gls .has-drop {
  position: relative;
}

.nb-gls .has-drop > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nb-gls .drop-arrow {
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.nb-gls .has-drop:hover .drop-arrow {
  transform: rotate(180deg);
}

.nb-gls .drop-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 200px;
  background: rgba(10,6,30,0.7);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid var(--nb-gls-glass-border);
  border-radius: 16px;
  padding: 8px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top left;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
}

.nb-gls .has-drop:hover .drop-menu,
.nb-gls .has-drop:focus-within .drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.nb-gls .drop-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--nb-gls-text-muted);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nb-gls .drop-menu a:hover {
  background: rgba(255,255,255,0.07);
  color: var(--nb-gls-text-primary);
}

.nb-gls .drop-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.nb-gls .drop-divider {
  height: 1px;
  background: var(--nb-gls-glass-border);
  margin: 6px 0;
}

.nb-gls .nav-spacer {
  flex: 1;
  min-width: 1rem;
}

.nb-gls .nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nb-gls .action-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--nb-gls-glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nb-gls-text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.nb-gls .action-icon:hover {
  background: rgba(255,255,255,0.12);
  color: var(--nb-gls-text-primary);
  border-color: rgba(255,255,255,0.25);
}

.nb-gls .btn-launch {
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #050311;
  background: linear-gradient(135deg, var(--nb-gls-accent-cyan), var(--nb-gls-accent-violet));
  border: none;
  border-radius: 12px;
  padding: 9px 18px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(0,240,255,0.3);
  white-space: nowrap;
}

.nb-gls .btn-launch:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.nb-gls .page {
  position: relative;
  z-index: 1;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 120px;
  text-align: center;
  gap: 2rem;
}

.nb-gls .pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--nb-gls-accent-cyan);
  background: rgba(0,240,255,0.08);
  border: 1px solid rgba(0,240,255,0.2);
  border-radius: 100px;
  padding: 6px 16px;
}

.nb-gls .pill-badge::before {
  content: '◉';
  font-size: 0.6rem;
  animation: nb-gls-pulse 2s ease-in-out infinite;
}

@keyframes nb-gls-pulse {
  0%,
    100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.nb-gls .hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 800;
  color: var(--nb-gls-text-primary);
  line-height: 1;
  letter-spacing: -0.03em;
}

.nb-gls .hero-title .gradient-text {
  background: linear-gradient(135deg, var(--nb-gls-accent-cyan), var(--nb-gls-accent-violet), var(--nb-gls-accent-rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nb-gls .hero-sub {
  font-size: 1.1rem;
  color: var(--nb-gls-text-muted);
  max-width: 50ch;
  line-height: 1.7;
}

.nb-gls .demo-cards {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.nb-gls .demo-card {
  background: var(--nb-gls-glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--nb-gls-glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  width: 160px;
  text-align: left;
  transition: transform 0.2s, border-color 0.2s;
}

.nb-gls .demo-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.25);
}

.nb-gls .demo-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.nb-gls .demo-card-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--nb-gls-text-primary);
  margin-bottom: 0.25rem;
}

.nb-gls .demo-card-val {
  font-size: 0.7rem;
  color: var(--nb-gls-text-muted);
}

@media (max-width: 768px) {
  .nb-gls nav {
    width: calc(100% - 24px);
    top: 12px;
  }

  .nb-gls .nav-links .has-drop,
    .nb-gls .nav-links li:not(.has-drop):nth-child(n+4) {
    display: none;
  }

  .nb-gls .nav-divider {
    display: none;
  }

  .nb-gls .demo-cards {
    display: none;
  }

  .nb-gls .hero-sub {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nb-gls .aurora,
    .nb-gls .pill-badge::before,
    .nb-gls .demo-card {
    animation: none !important;
    transition: none !important;
  }
}
```

Techniques used in this demo

Search CodeFronts

Loading…