If you are someone who works with JavaScript projects on a regular basis, there are good chances that you will often be asked to create animations. Such JavaScript animations, in general, are pretty simple to begin with and hardly require Physics. However, just in case you do need that extra bit of Physics in your JavaScript animations, allow me to introduce you to PhysicsJS, a JavaScript library that lets you add Physics to your JavaScript animations within minutes and without any adverse effect on download time. Introduction to PhysicsJS Major Features PhysicsJS is still in Alpha, but it already boasts of a heavy list of features, such as: MIT License. PhysicsJS is modular, so that you only need to load the stuff that you actually intend to use. The core library is just 31 KB minified. It is highly extendable, so you can tweak and play around with it as much as you like. Written in native JavaScript, the library features a syntax familiar for JavaScript developers (it isn’t C compiled into JS, you know). PhysicsJS uses an AMD module or global namespace. Furthermore, it is not tied to a specific renderer in particular. Lastly, PhysicsJS comes with a plethora […]
↧