Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Flexible spinner using Canvas

tag: 0.1.0

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .npmignore
Octocat-spinner-32 History.md
Octocat-spinner-32 Makefile
Octocat-spinner-32 Readme.md
Octocat-spinner-32 component.json
Octocat-spinner-32 index.js
Octocat-spinner-32 package.json
Readme.md

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

Something went wrong with that request. Please try again.