Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Bootstrap Progress Bar

Bootstrap Progress Bar

Introduction

In this tutorial, you will see how to create progress bars with loading, redirecting, or action states using Bootstrap.

Basic, striped, and animated progress bar examples

Example

    

        

            

A basic vertical progress bar

            

                

                     style="width: 60%;">

            

            

A striped progress bar, using a gradient to create a striped effect

            

                

            

            

An animated progress bar

            

                

            

        

    

    


View the example online

Note that to display the third type of progress bar, add the '.active' class to give it motion. Bootstrap uses CSS3 transitions to create this animation. You can also dynamically adjust the width of the progress bar via JavaScript. In this way, you can control the progress behavior.

When creating progress bars, you can use other colors.

Progress bar examples with other colors

Example

    

        

            

Progress bars can also have other colors

            

                

            

            

                

            

            

                

            

            

                

            

        

    


View the example online

Browser support

We have tested the above two examples in different browsers. We found that they display properly in Firefox 12 and Chrome 19.0.1084.52, but in Opera 11.62 the animation effect cannot be displayed, even though you can see the stripes and gradient. In Internet Explorer 8, none of the display effects work well, with no animation, stripes, or gradient.

Click here to download all the HTML, CSS, JS, and image files used in this tutorial.