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
- Host: GitHub
- URL: https://github.com/sapegin/jquery-nicehover
- Owner: sapegin
- Created: 2011-01-21T16:03:56.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2011-04-27T15:15:56.000Z (over 14 years ago)
- Last Synced: 2025-03-01T04:26:27.483Z (11 months ago)
- Language: JavaScript
- Homepage:
- Size: 91.8 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.txt
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)