jquery-hoverIntent

A jQuery plugin that attempts to determine the user's intent on mouseover and thus delay or prevent the accidental firing of callbacks.


Keywords
browser, delay, events, hover, hoverintent, intent, jquery, jquery-plugin, mouse, mouseenter, mouseover, plugin
License
MIT
Install
bower install jquery-hoverIntent

Documentation

hoverIntent jQuery Plug-in

hoverIntent is a plug-in that attempts to determine the user's intent... like a crystal ball, only with mouse movement! It is similar to jQuery's hover method. However, instead of calling the handlerIn function immediately, hoverIntent waits until the user's mouse slows down enough before making the call.

Why? To delay or prevent the accidental firing of animations or ajax calls. Simple timeouts work for small areas, but if your target area is large it may execute regardless of intent. That's where hoverIntent comes in...

For more information, visit briancherne.github.io/jquery-hoverIntent.