spinner-browserify

Flexible spinner using Canvas

spinner-browserify

Flexible spinner using canvas, a fork of godmodelabs/spinner.

Check out the demo!

$ npm install spinner-browserify
var Spinner = require('spinner-browserify');
 
var spinner = new Spinner;
document.body.appendChild(spinner.el);

Change the spinner to the light theme.

Change the font to family.

Change the font size to n.

Change the indicator diameter to n, defaults to 50.

Change the speed to n rpm, defaults to 60.

Stop the animation. This is important when removing the spinner, otherwise the requestAnimationFrame cycle will continue.

MIT