Tab Bar

A floating bottom tab bar for mobile-style navigation.

Preview

The tab bar is position: fixed at the bottom of the viewport. Below is a static preview:

Usage

<div class="glass-tab-bar">
  <a href="/" class="tab-item active">
    <span class="tab-icon">🏠</span>
    Home
  </a>
  <a href="/search" class="tab-item">
    <span class="tab-icon">🔍</span>
    Search
  </a>
  <a href="/profile" class="tab-item">
    <span class="tab-icon">👤</span>
    Profile
  </a>
</div>

Structure

Element / ClassPurpose
.glass-tab-barFixed bottom bar with heavy blur and rounded corners
.tab-itemIndividual tab link
.tab-item.activeCurrently selected tab (accent color + active background)
.tab-iconIcon element (1.25rem, small bottom margin)

Behavior

StateEffect
DefaultSecondary text color
HoverText brightens, background slightly highlights, translateY(-1px)
ActivetranslateY(0) scale(0.97)
Selected (.active)Accent color, active background, inset shadow

CSS Details

PropertyValue
Positionfixed, bottom: 1.5rem, centered with left: 50%; transform: translateX(-50%)
BackgroundHeavy blur (--glass-blur-thick)
Border Radiusvar(--glass-radius-xl) (32px)
Padding0.4rem 0.8rem
Z-index950
ShadowEnhanced depth with 0 12px 40px
Max Width90%

Compatible Modifiers

  • .thin / .thick — material weight
  • .vibrant — accent tint
  • .glow — outer glow