0.1.1 • Published 11 years ago
component-spin v0.1.1
spin
Higher level spinner API auto positioning and scaling to fit within the target element. Built on component/spinner.

Installation
$ component install component/spinAPI
spin(el, options)
Add a spinner to el with options, and return
the Spinner instance.
sizedefaulting to 1/5th the element widthdelaydefault to 300ms
var s = spin(document.querySelector('.one'));Spinner#update()
Augments the Spinner returned with an .update() method,
which updates the size and position of the spinner.
Spinner#remove()
Augments the Spinner returned with a .remove() method,
which when removes the spinner or cancels delayed spinners.
License
MIT