Newton’s laws of DIVs

There’s this great bookmarklet that applies gravity to elements on a page. It’s just a fun toy in JavaScript, but it’s pretty cool. You’ll need a Webkit browser such as Safari or Google Chrome. It works better in Google Chrome at the moment because it has a faster JavaScript engine, but the bookmarklet may run even faster in the nightly builds of Safari.

The bookmarklet makes use of a port of the Box2D physics engine in JavaScript. By the way, you can also download the scripts (there are many of them) for the bookmarklet so that you can tweak them a bit. If you have a fast CPU, you can increase the amount of elements affected.


Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>