0.0.2 • Published 11 years ago

spin-component v0.0.2

Weekly downloads
2
License
-
Repository
-
Last release
11 years ago

spin

Higher level spinner API auto-adjusting position and scale to fit within the target element. Built oncomponent/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

0.0.2

11 years ago

0.0.1

11 years ago