Loading Wave
A simple wave pendulum-like loading animation.
var Wave = var wave = documentbody
API
var Wave =
Wave(options)
Constructs and returns a LoadingWave object. Available options:
- width/height: width/height of animation in pixels
- n: number of items in the animation
- color: color of items
wave.stop()
Stops the animation. Do this before you hide / remove the animation so that it stops looping.
wave.start()
Starts the animation again. Use this if you want to keep one instance around but need to hide it temporarily.
License
MIT