Learn 'Mobile First' Web Design Using Bootstrap 3 by Rahul A. Sakla - HTML preview

PLEASE NOTE: This is an HTML preview only and some elements such as links or page numbers may be incorrect.
Download the book in PDF, ePub, Kindle for a complete version.

Chapter 16 Progress Bars

 

16.1 Progress Bars

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

Cross-browser compatibi/ity

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

 

16.1.1 Default Progress Bar

img338.png

 

img339.png

 

 

With Label

Remove the <span> with .sr-only class from within the progress bar to show a visible percentage.

img340.png

img341.png

 

To ensure that the label text remains legible even for low percentages, consider adding a min-width to the progress bar.

img342.png

img343.png

img344.png

 

16.2 Contextual Alternatives

 

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

img345.png

 

img346.png

img347.png

img348.png

img349.png

img350.png

img351.png

img352.png

img353.png

 

16.3 Striped

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

 

img354.png

img355.png

img356.png

img357.png

img358.png

 

16.4 Animated

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

 

img359.png

img360.png

 

16.8 Stacked

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

img361.png

img362.png

img363.png

img364.png