ProgressBar.js

Beautiful progress bars

ProgressBar.js

Beautiful and responsive progress bars with animated SVG paths.

With ProgressBar.js, it's easy to create arbitrary shaped progress bars. This JavaScript library provides a few built‑in shapes like Line, Circle and SemiCircle but you can also create your own progress bars with Illustrator or any vector graphic editor.

ProgressBar.js is lightweight, MIT licensed and supports all major browsers including IE9+.

Install it with Bower:

bower install progressbar.js

Or NPM:

npm install progressbar.js

Or just by including progressbar.js or progressbar.min.js from latest tag to your project.

For detailed usage, see API documentation in ReadTheDocs.

Full page examples

Examples

Line

Simple example of animating a built‑in Line progress bar to 100%. Line width can be set by specifying container's height with CSS.

Circle

Simple example of animating a built‑in circular progress bar to 70% and back to 0%.

Circle with percent text

Example of setting text for progress bar. We nicely animate percent of the progress.

Custom animation

Example of customizing the animation. We'll change the color of progress bar smoothly with animation. You could also animate any property like stroke width, fill opacity, fill color etc. See detailed explanation in API documentation.

Complex custom animation

A bit more complex example of customizing the animation. We'll change the width and the color of a progress bar.

Clock

Example of useless clock. Text is automatically positioned to the center. You can disable automatic text styling with autoStyle option.

Custom shaped path

Example of animating path inside a complex SVG scene. If you need to do more complicated animations, use SVG animation library like Snap.svg.