jquery.hoverDirection Implements the direction of the mouse during a jquery hover. Exemple of use: $('#myElement').hoverDirection(function (d) { alert('Enter from ' + d); }, function (d) { alert('Leaving from ' + d); }); Live demo: http://www.kilianamendola.com