
hoverIntent is a jQuery plug-in that made to control the response the mouse movement just as the user’s intent to. It was derived from jQuery’s built-in hover. However, instead of immediately calling the onMouseOver function, you can control the call of action on mouse over and waits until the user’s mouse slows down enough before the action is executed.
This could be useful 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.
There are some configuration pf options, as you can control the settings of MouseOver events. You can set it’s:
* sensitivity – default sensitivity: 7
* interval – default interval: 100
* over – required function. It is the function you’d like to call onMouseOver.
* timeout – default timeout: 0
* out – required function. It is the function you’d like to call onMouseOut.
As this could be useful for your web project, you can just visit the site to understand more about this hoverIntent jQuery Plug-in or bookmark this post for future refference.










Twitter Updates
Loading...
Written by Thomas
Topics: Scripting