Progress
Documentation and examples for using Bootstrap custom progress bars featuring support for stacked bars, animated backgrounds, and text labels.
Example
Use
data-progress="{number}%"
attribute on .progress-bar
to enable progress-bar width. <div class="progress"> <div class="progress-bar"></div></div>
Labels
Add labels to your progress bars by placing text within the .progress-bar
.
<div class="progress"> <div class="progress-bar" data-progress="25%">25%</div></div>
Backgrounds
Use background utility classes to change the appearance of individual progress bars.
<div class="progress mb-3"> <div class="progress-bar bg-success" data-progress="25%"></div></div>
Multiple bars
Include multiple progress bars in a progress component if you need.
<div class="progress"> <div class="progress-bar" data-progress="15%"></div> <div class="progress-bar bg-success" data-progress="30%"></div> <div class="progress-bar bg-info" data-progress="20%"></div></div>
Striped
Add .progress-bar-striped
to any .progress-bar
to apply a stripe via CSS gradient over the progress bar’s background color.
<div class="progress mb-3"> <div class="progress-bar progress-bar-striped" data-progress="10%"></div></div>
Animated stripes
The striped gradient can also be animated. Add .progress-bar-animated
to .progress-bar
to animate the stripes right to left via CSS3 animations.
<div class="progress"> <div class="progress-bar progress-bar-striped progress-bar-animated" data-progress="75%"></div></div>