Check if two elements are colliding.
JavaScript
Switch branches/tags
Latest commit d4c4da6 Apr 22, 2012 @jnbdz Change the code so that it uses native functions found in Mootools to…
… find the position of the elements.

README.md

Element.collide

Check if two elements are colliding.

Screenshot

How to use

The code is self explanatory. It will return true if the elements collide or false if the elements don't collide.

firstElement.elCollide(secondElement);