package
Higher level spinner API
npm install component-spinGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Registry package owners.
Higher level spinner API auto positioning and scaling to fit within the target element. Built on component/spinner.

$ component install component/spinAdd a spinner to el with options, and return
the Spinner instance.
size defaulting to 1/5th the element widthdelay default to 300msvar s = spin(document.querySelector('.one'));Augments the Spinner returned with an .update() method,
which updates the size and position of the spinner.
Augments the Spinner returned with a .remove() method,
which when removes the spinner or cancels delayed spinners.
MIT
Estimated unpacked size across 17 packages.
52.3 kB
Includes dependencies.
4 direct · 1 outdated