Socket
Book a DemoInstallSign in
Socket

spin-component

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spin-component

Higher level spinner API

latest
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

spin

Higher level spinner API auto positioning and scaling to fit within the target element. Built on component/spinner.

javascript spinner

Installation

$ component install component/spin

API

spin(el, [options])

Add a spinner to el with options, and return the Spinner instance.

  • size defaulting to 1/5th the element width
  • delay default to 300ms
var s = spin(document.querySelector('.one'));

Spinner#remove()

Augments the Spinner returned with a .remove() method, which when removes the spinner or cancels delayed spinners.

License

MIT

Keywords

spin

FAQs

Package last updated on 27 Feb 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