Progress

A glass-styled progress bar with color variants.

Preview

Usage

<div class="glass-progress">
  <div class="progress-fill" style="width: 65%;"></div>
</div>

<!-- Color variants -->
<div class="glass-progress">
  <div class="progress-fill success" style="width: 85%;"></div>
</div>
<div class="glass-progress">
  <div class="progress-fill warning" style="width: 45%;"></div>
</div>
<div class="glass-progress">
  <div class="progress-fill error" style="width: 25%;"></div>
</div>

Structure

Element / ClassPurpose
.glass-progressTrack container (8px tall, pill-shaped)
.progress-fillInner fill bar (set width via style or JS)
.progress-fill.successGreen fill
.progress-fill.warningOrange fill
.progress-fill.errorRed fill

CSS Details

  • Track: background: rgba(0,0,0,0.08), pill-shaped, inset shadow
  • Fill: Animated width transition (0.4s spring easing), specular inset highlight
  • Default fill color: --glass-accent