Hacker News new | past | comments | ask | show | jobs | submit login

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/maste...




Here's my source code for this effect, in case anybody's interested:

http://jlongster.com/media/js/fluid.js

You can check it out at http://jlongster.com.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: