0.0.6 • Published 8 years ago

bouncing-ball v0.0.6

Weekly downloads
17
License
-
Repository
github
Last release
8 years ago

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

Example

Developers

To build

npm install
webpack
0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago