Progress bars

Provide up-to-date feedback on the progress of a workflow or action with simple yet flexible progress bars.

Cross-browser compatibility

Progress bars use CSS3 transitions and animations to achieve some of their effects. These features are not supported in Internet Explorer 9 and below or older versions of Firefox. Opera 12 does not support animations.

Basic example

Default progress bar.

60% Complete
{% highlight html %}
60% Complete
{% endhighlight %}

With label

Remove the .sr-only class from within the progress bar to show a visible percentage. For low percentages, consider adding a min-width to ensure the label's text is fully visible.

60%
{% highlight html %}
60%
{% endhighlight %}

Contextual alternatives

Progress bars use some of the same button and alert classes for consistent styles.

40% Complete (success)
20% Complete
60% Complete (warning)
80% Complete (danger)
{% highlight html %}
40% Complete (success)
20% Complete
60% Complete (warning)
80% Complete
{% endhighlight %}

Striped

Uses a gradient to create a striped effect. Not available in IE8.

40% Complete (success)
20% Complete
60% Complete (warning)
80% Complete (danger)
{% highlight html %}
40% Complete (success)
20% Complete
60% Complete (warning)
80% Complete (danger)
{% endhighlight %}

Animated

Add .active to .progress-bar-striped to animate the stripes right to left. Not available in IE9 and below.

45% Complete
{% highlight html %}
45% Complete
{% endhighlight %}

Stacked

Place multiple bars into the same .progress to stack them.

35% Complete (success)
20% Complete (warning)
10% Complete (danger)
{% highlight html %}
35% Complete (success)
20% Complete (warning)
10% Complete (danger)
{% endhighlight %}