Eric Seidel normally spends his time building browsers, but he has a fun little bit of JavaScript code to show us this time. Gravity was inspired by the Flash Wii Ad that has been going around that uses Flash to explode out of the page.

The bookmarklet takes your form elements and images and starts doing the same thing to them, but uses normal browser manipulation and Canvas to do its magic, as well as the Box 2d physics engine.

The worst thing is that it actually works perfectly in recent Firefox nightly… you simply have to replace webkitTransform with MozTransform in import.js and define console.log, that’s it… even without JIT, I have yet to see it stuttering only the slightest bit in today’s nightly.