Global media controls now have a progress bar (Chrome Canary). Google has made some changes to the Global media controls UI and one of those changes is the addition of a progress bar, here you can see the new design: Progress bar (dark). Progress bar (light). Jan 16, 2017 Creating the progress bar is actually quite easy. It just requires an annotation and a transition, and can be done in less than 30 seconds. Here is a quick animation that shows how to add the progress bar. The following is a step-by-step guide on how to add the progress bar to your GIFs. Step 1 – Record the Screencast.

  1. Progress Bar Gif Animation
  2. 50 Progress Bar Gif Image
  3. Animated Gif Progress Bar

Basic Progress Bar

A progress bar can be used to show a user how far along he/she is in a process.

Bootstrap provides several types of progress bars.

A default progress bar in Bootstrap looks like this:

To create a default progress bar, add a .progress class to a <div> element:

Example

<div>
<div aria-valuenow='70'
aria-valuemin='0' aria-valuemax='100'>
<span>70% Complete</span>
</div>
</div>
Try it Yourself »

Note: Progress bars are not supported in Internet Explorer 9 and earlier (because they use CSS3 transitions and animations to achieve some of their effects).
Note: To help improve accessibility for people using screen readers, you should include the aria-* attributes.

Progress Bar With Label

A progress bar with a label looks like this:

Remove the .sr-only class from the progress bar to show a visible percentage:

Example

<div>
<div aria-valuenow='70'
aria-valuemin='0' aria-valuemax='100'>
70%
</div>
</div>
Try it Yourself »

Colored Progress Bars

Contextual classes are used to provide 'meaning through colors'.

The contextual classes that can be used with progress bars are:

Downloads
  • .progress-bar-success
  • .progress-bar-info
  • .progress-bar-warning
  • .progress-bar-danger

The following example shows how to create progress bars with the different contextual classes:

Example

Gift
<div>
<div aria-valuenow='40'
aria-valuemin='0' aria-valuemax='100'>
40% Complete (success)
</div>
</div>
<div>
<div aria-valuenow='50'
aria-valuemin='0' aria-valuemax='100'>
50% Complete (info)
</div>
</div>
<div>
<div aria-valuenow='60'
aria-valuemin='0' aria-valuemax='100'>
60% Complete (warning)
</div>
</div>
<div>
<div aria-valuenow='70'
aria-valuemin='0' aria-valuemax='100'>
70% Complete (danger)
</div>
</div>
Try it Yourself »

Striped Progress Bars

Progress bars can also be striped:

Add class .progress-bar-striped to add stripes to the progress bars:

Example

<div>
<div
aria-valuenow='40' aria-valuemin='0' aria-valuemax='100'>
40% Complete (success)
</div>
</div>
<div>
<div
aria-valuenow='50' aria-valuemin='0' aria-valuemax='100'>
50% Complete (info)
</div>
</div>
<div>
<div
aria-valuenow='60' aria-valuemin='0' aria-valuemax='100'>
60% Complete (warning)
</div>
</div>
<div>
<div
aria-valuenow='70' aria-valuemin='0' aria-valuemax='100'>
70% Complete (danger)
</div>
</div>
Try it Yourself »

Animated Progress Bar

Add class .active to animate the progress bar:

Example

<div>
<div
aria-valuenow='40' aria-valuemin='0' aria-valuemax='100'>
40%
</div>
</div>
Try it Yourself »

Stacked Progress Bars

Progress bars can also be stacked:

Warning

Create a stacked progress bar by placing multiple bars into the same <div>:

Progress Bar Gif Animation

Example

<div>
<div>
Free Space
</div>
<div>
Warning
</div>
<div>
Danger
</div>
</div>
50 Progress Bar GifTry it Yourself »

Contents

HTML Progress Bar: Main Tips

  • Introduced in HTML5, progress element represents a certain ongoing task and might indicate its level of completion.
  • It works in a similar fashion to the HTML gauge.
  • HTML progress bars can be determinate or indeterminate.
  • The ending tag cannot be omitted.
  • You can easily style the progress bar with Bootstrap.

50 Progress Bar Gif Image

Tracking HTML Progress

The progress tags are used to specify an HTML progress bar:

Possible progress Tag Attributes

There are two optional attributes you can use with HTML5 progress bars: max and value.

The max attribute specifies total work required by the task. It must have a positive value (the default value is 1):

The value attribute specifies how much of the task is completed. It must have a positive value that does not exceed max (or 1, if max is not specified):

Determinate or Not?

In the example below, you can see two HTML5 progress bars:

The first one is determinate: it has the value specified and therefore shows the level of completion of the task.

The second bar has no value defined, which makes it indeterminate. That means it will only indicate that the action is still happening. However, it will not represent what part of it is completed and how much is still left to do.

Browser support

6+
All
6+
10+
11+

Animated Gif Progress Bar

6+

Mobile browser support

All
6+
11+
7+