4 ms·
The div version was a bit slow in my Chrome browser; the canvas works very smooth. That said, I think the source code of the HTML5 version is quite pretty and
by metachris 16y ago
The div version was a bit slow in my Chrome browser; the canvas works very smooth.
That said, I think the source code of the HTML5 version is quite pretty and worth having a look at: http://github.com/robhawkes/google-bouncing-balls/blob/master/js/main.js http://github.com/robhawkes/google-bouncing-balls/blob/maste...
- jlongster 16y agoHere's my source code for this effect, in case anybody's interested: http://jlongster.com/media/js/fluid.js http://jlongster.com/media/js/fluid.js You can check it out at http://jlongster.com http://jlongster.com.