1.0.0 • Published 11 years ago

spinner-component2 v1.0.0

Weekly downloads
14
License
-
Repository
-
Last release
11 years ago

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.

License

MIT

1.0.0

11 years ago

0.1.0

12 years ago

0.0.2

12 years ago