An open API service indexing awesome lists of open source software.

https://github.com/sapegin/jquery-nicehover

jQuery delayed hover event
https://github.com/sapegin/jquery-nicehover

Last synced: 6 months ago
JSON representation

jQuery delayed hover event

Awesome Lists containing this project

README

          

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)