Quickly make a text spinner for your HTML. Using cli-spinners.
npm install el-spinner
 
Quickly make a text spinner for your HTML. Using cli-spinners.
``bash`
npm install --save el-spinner
Include the javascript file in your HTML and make a new ElSpinner:`html`
You can also use it like this:
`javascript
import ElSpinner from 'el-spinner'
let spinner = new ElSpinner({
el: document.getElementById('el')
})
spinner.start()
`
#### constructor(options)
#### start()
Start the spinner from the first frame.
#### stop()
Stop the spinner.
#### resume()
Resume the spinner.
#### toggle()
Toggle the spinner state between stop and resume`.
#### remove()
Stop the spinner and then remove the text from the element.
#### set(options)
Pass a new option to the spinner.