Bootstrap Progress - Creating Progress Bar with Bootstrap
Bootstrap Progress
- Progress bars featuring support for stacked bars, animated backgrounds, and text labels.
- Use the .progress as a wrapper to indicate the max value of the progress bar.
- The .progress-bar requires an inline style, utility class, or custom CSS to set their width.
- The .progress-bar also requires some role and aria attributes to make it accessible, including an accessible name.
Sample Code
Output
Bootstrap Progress Labels
- Labels to progress bars by placing text within the .progress-bar.
Sample Code
Output
Bootstrap Progress Height
- A height value on the .progress, so if you change that value the inner .progress-bar will automatically resize accordingly.
Sample Code
Output
Bootstrap Progress Backgrounds
- Use background utility classes to change the appearance of individual progress bars.
Sample Code
Output
Bootstrap Progress Multiple bars
- You can include multiple progress components inside a container with .progress-stacked to create a single stacked progress bar. Note that in this case, the styling to set the visual width of the progress bar must be applied to the .progress elements, rather than the .progress-bars.
Sample Code
Output
Bootstrap Progress Striped
- Add .progress-bar-striped to any .progress-bar to apply a stripe via CSS gradient over the progress bar’s background color.
Sample Code
Output
Bootstrap Progress 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.