Bouncyballs
A downloadable tool
Add quick and easy animation effects to any website. (1.7kb)
You can either use CSS or javascript style notation to specify the appearance.
<script src="bouncyballs.min.js"></script>
<script>
var animation = bouncyballs('.ballpit');
animation.createBalls(30,'width:5px; height:5px;background:#ffa375;');
animation.createBalls(20,'width:10px;height:10px;background:#ffb793;');
animation.createBalls(10,'width:20px;height:20px;background:#ffccb2;');
animation.createBalls(5, {width:'40px',height:'40px', background:'#ffe0d1'});
animation.setInterval(40);
</script>
Download
Download
bouncyballs.zip 3.5 kB

Leave a comment
Log in with itch.io to leave a comment.