bouncing-ball
v0.0.6
Published
Bouncing balls everywhere
Downloads
8
Maintainers
Readme
BouncingBall
A pure JS loading animation
var BouncingBall = require('bouncing-ball');
var myBalls = new BouncingBall(
document.getElementById('container'),
{
maxTop: 80, // max height in px
numberOfBalls: 3,
ballColour: ["pink","green","#00ffee"], // scalar or array
ballRadius: 10 // px
}
);
myBalls.bounce(); // start animation
// ... some time later ...
myBalls.unbounce(); // stop animation
Developers
To build
npm install
webpack