• Ian Sutherland's avatar
    Named asset import for SVG files (#3907) · d0e17316
    Ian Sutherland authored
    * Add named asset import for svg files via babel plugin and webpack loader.
    
    * Fix failing e2e test
    
    * Switched to svgr loader
    
    * Updated SVG component test
    
    * Disable named asset import plugin in test environment
    
    * Added tests for including SVG in CSS
    
    * Update tests
    
    * Moved babel plugin config into webpack config
    Unverified
    d0e17316
progress.md 2.62 KiB
layout: docs
title: Progress
group: components

Stylize the HTML5 <progress> element with a few extra classes and some crafty browser-specific CSS. Be sure to read up on the browser support.

Contents

  • Will be replaced with the ToC, excluding the "Contents" header {:toc}

Example

{% example html %} 0% 25% 50% 75% 100% {% endexample %}

IE9 support

Internet Explorer 9 doesn't support the HTML5 <progress> element, but we can work around that.

{% example html %}

25%
{% endexample %}

Contextual alternatives

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

{% example html %} 25% 50% 75% 100% {% endexample %}

Striped

Uses a gradient to create a striped effect.

{% example html %} 10% 25% 50% 75% 100% {% endexample %}

Animated stripes

The striped gradient can also be animated. Add .progress-animated to .progress to animate the stripes right to left via CSS3 animations.

Animated progress bars do not work in IE9 and Opera 12 as they don't support CSS3 animations.

25% Toggle animation

{% highlight html %} 25% {% endhighlight %}