Progress bar is a graphical control element used to visualize the progression of an operation such as a download, file transfer, or installation. Bootstrap progress bars features support for stacked bars, animated backgrounds, and text labels.
Progress components are built with two HTML elements. Create a wrapper element and add .progress to the to indicate the max value of the progress bar and .progress-bar class to child element which indicates the progress so far.
You can set the width of progress bar using inline style, utility class, or custom CSS to set their width.
Set the width using css style attribute.
.progressas a wrapper to indicate the max value of the progress bar.
.progress-barto indicate the progress so far.
.progress-barrequires an inline style, utility class, or custom CSS to set their width.
.progress-baralso requires some
ariaattributes to make it accessible.
You also can set width using the bootstrap utilities for setting the width.
You can add labels to your progress bars by placing text within the
height of the wrapper element(element where .progress class is added) using inline-style or custom css.
Use background utility classes to change the appearance of individual progress bars.
Include multiple progress bars in a progress component by creating multiple child elements with
.progress-bar-striped to any
.progress-bar to apply a stripe via CSS gradient over the progress bar's background color.
To animate the striped gradient add
.progress-bar which animate the stripes right to left via CSS3 animations.