0.2.0 • Published 8 years ago
spinner-basis v0.2.0
Spinner Basis
Simple loading spinner component
Works on modern browsers only (uses es6 modules and css custom properties)
Usage
You need to create a spinner instance in order to use it:
let spinner = new Spinner();
This will create a #spinner DOM element that you can control via the API :
Spinner: show()
The #spinner element will simply appear on screen:
spinner.show();
Spinner: hide()
And, I know you got it, the #spinner element will be hidden with:
spinner.hide();