Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Flexible spinner using Canvas
JavaScript HTML Makefile
tag: 0.0.1

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
.gitignore
.npmignore
History.md
Makefile
Readme.md
component.json
index.js
package.json

Readme.md

Spinner

Dynamic 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

Something went wrong with that request. Please try again.