Skip to content

Latest commit

 

History

History
44 lines (25 loc) · 620 Bytes

Readme.md

File metadata and controls

44 lines (25 loc) · 620 Bytes

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