A simple wave pendulum-like loading animation for the browser
npm install simple-loading-wavejs
var Wave = require('loading-wave')
var wave = Wave({
width: 500,
height: 100,
n: 10,
color: 'steelblue'
})
document.body.appendChild(wave.el)
setTimeout(function() {
wave.stop()
}, 1000)
setTimeout(function() {
wave.start()
}, 2000)
`
API
`js
var Wave = require('loading-wave')
``