Developer

Glass Nav Builder

Design glassmorphism nav bars visually and copy the ready-to-paste HTML.

Be the first to rate

Generated HTML

<!-- Glass Navbar -->
<nav class="sticky z-50 mx-auto flex max-w-6xl items-center justify-between border border-white/10 backdrop-blur-xl bg-white/10" style="--gn-accent: #6366f1; top: 12px; border-radius: 16px; box-shadow: 0 8px 32px -8px rgba(0,0,0,0.4), 0 1px 0 0 rgba(255,255,255,0.1) inset;">
  <a href="#" class="flex items-center gap-2 px-4 py-2.5">
    <span class="flex h-8 w-8 items-center justify-center rounded-lg text-sm font-bold text-white" style="background: #6366f1;">★</span>
    <span class="text-base font-bold text-white">Brand</span>
  </a>
  <div class="hidden items-center gap-1 px-2 md:flex">
      <a href="#" class="gn-link gn-active px-3 py-1.5 text-sm font-medium text-white/70 hover:text-white">Home</a>
      <a href="#" class="gn-link  px-3 py-1.5 text-sm font-medium text-white/70 hover:text-white">Features</a>
      <a href="#" class="gn-link  px-3 py-1.5 text-sm font-medium text-white/70 hover:text-white">Pricing</a>
      <a href="#" class="gn-link  px-3 py-1.5 text-sm font-medium text-white/70 hover:text-white">About</a>
  </div>
    <div class="flex items-center gap-2 px-3">
      <div class="flex h-8 w-8 items-center justify-center rounded-full text-xs font-bold text-white" style="background: #6366f1;">U</div>
      <span class="text-sm font-medium text-white/80">User</span>
    </div>
</nav>

Nav CSS

<style>
  .gn-link { transition: all .2s ease; border-radius: .5rem; }
  .gn-link:hover { background: rgba(255,255,255,0.12); }
  .gn-link.gn-active { background: var(--gn-accent); color: #fff; }
</style>

Background CSS

/* Ensure a colored page background so the glass blur is visible */
body { background: linear-gradient(135deg, #1e1b4b, #0f172a); }
10%
16px
12px