Primitive
Progress CSS-only
Bar that fills from 0 to a max value. Determinate (you know the percentage) or indeterminate (continuous animation when the duration is unknown).
About
Overview
Use Progress when a long task has measurable progress: file upload, multi-step wizard, video buffering. For short waits where you don't know the duration, use a Spinner instead.
Live
Demo
<div class="ren-progress" role="progressbar"
aria-valuenow="60" aria-valuemin="0" aria-valuemax="100">
<div class="ren-progress-bar" style="width: 60%"></div>
</div>Reference
API
| Class | Effect |
|---|---|
.ren-progress | The track. Use with role="progressbar". |
.ren-progress-bar | The filled portion. Set width: NN% or use the data attribute on the parent. |
.ren-progress-indeterminate | Continuous-loop animation when progress is unknown. |
.ren-progress-success / -warning / -danger | Status colors for the bar. |
Inclusive by default
Accessibility
- Always set
role="progressbar"on the track. - For determinate:
aria-valuenow,aria-valuemin,aria-valuemax. - For indeterminate: omit
aria-valuenow; addaria-label.