8000 GitHub - dominicbarnes/spinner: Flexible spinner using Canvas · GitHub
[go: up one dir, main page]

Skip to content
dominicbarnesPublic
forked from component/spinner

About

Flexible spinner using Canvas

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

33 Commits

Folders and files

Repository files navigation

Spinner

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

js spinner component

Check out the demo!

Installation

$ component install component/spinner

Example

var Spinner = require('spinner');

var spinner = new Spinner;
document.body.appendChild(spinner.el);

API

Spinner#light()

Change the spinner to the light theme.

Spinner#font(family)

Change the font to family.

Spinner#fontSize(n)

Change the font size to n.

Spinner#size(n)

Change the indicator diameter to n, defaults to 50.

Spinner#speed(n)

Change the speed to n rpm, defaults to 60.

Spinner#stop()

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

License

MIT

About

Flexible spinner using Canvas

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0