Skip to content

visionmedia/spinner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spinner

Flexible spinner using canvas.

js spinner component

Installation

$ component install godmodelabs/spinner
$ npm install spinner-component

Example

var Spinner = require('spinner');

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

API

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.

License

MIT

About

Flexible spinner using Canvas

Resources

Stars

Watchers

Forks

Packages

No packages published