Bootstrap4 Progress Bar

Progress bars can display the completion progress of user tasks.
The steps to create a basic progress bar are as follows:
- Add a with.progressclass <div>.
- Next, inside the above <div>, add a with class.progress-barempty <div>.
- Add a style attribute with a percentage width, for example style="width:70%"indicating the progress bar is at70%position.
Example
<div class="progress">
<div class="progress-bar" style="width:70%"></div>
</div>
Try it Yourself »
Progress Bar Height
The progress bar height is 16px by default. We can use CSSheightproperty to modify it:
Example
<div class="progress" style="height:20px;">
<div class="progress-bar" style="width:40%;"></div>
</div>
Try it Yourself »
Progress Bar Label
You can add text inside the progress bar, such as the percentage of progress:
Example
<div class="progress">
<div class="progress-bar" style="width:70%">70%</div>
</div>
Try it Yourself »
Progress Bars with Different Colors
By default, the progress bar is blue. Bootstrap4 also provides progress bars with the following colors:

Example
<div class="progress">
<div class="progress-bar bg-success" style="width:40%"></div>
</div>
<div class="progress">
<div class="progress-bar bg-info" style="width:50%"></div>
</div>
<div class="progress">
<div class="progress-bar bg-warning" style="width:60%"></div>
</div>
<div class="progress">
<div class="progress-bar bg-danger" style="width:70%"></div>
</div>
Try it Yourself »
Striped Progress Bar
You can use.progress-bar-stripedclass to set a striped progress bar:
Example
<div class="progress">
<div class="progress-bar progress-bar-striped" style="width:40%"></div>
</div>
Try it Yourself »
Animated Progress Bar
Use.progress-bar-animatedclass can add animation to the progress bar:
Example
<div class="progress-bar progress-bar-striped progress-bar-animated" style="width: 40%"></div>
Try it Yourself »
Mixed Color Progress Bar
Progress bars can be set to multiple colors:
Example
<div class="progress">
<div class="progress-bar bg-success" style="width:40%">
Free Space
</div>
<div class="progress-bar bg-warning" style="width:10%">
Warning
</div>
<div class="progress-bar bg-danger" style="width:20%">
Danger
</div>
</div>
Try it Yourself »