Socket
Book a DemoInstallSign in
Socket

spinner-browserify

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spinner-browserify

Flexible spinner using Canvas

latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

spinner-browserify

Flexible spinner using canvas, a fork of godmodelabs/spinner.

js spinner component

Check out the demo!

Installation

$ npm install spinner-browserify

Example

var Spinner = require('spinner-browserify');

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

Keywords

spinner

FAQs

Package last updated on 03 Apr 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts