Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
jQuery delayed hover event
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
jquery.nicehover.js
readme.txt

readme.txt

jQuery Nice Hover
© 2011 Artem Sapegin / http://sapegin.ru

Adds 'nicehover' event to jQuery. It’s similar to hover but fires only if mouse has stopped for a while on a target element. It can be useful to prevent “effect of Christmas tree” on pages with a lot of hoverable elements.


How to use it:

$('.wrapper img').bind('nicehover', function(e){ $(this).toggleClass('hover'); });
$('.wrapper').delegate('img', 'nicehover', function(e){ $(this).toggleClass('hover'); });


Based on jquery.event.hover.js by Three Dub Media (http://threedubmedia.com)
Something went wrong with that request. Please try again.