public
Last active

jQuery Hovers

  • Download Gist
jquery.hovers.js
JavaScript
1 2 3 4 5 6 7
function init_hovers() {
var $hovers = $('.dohover'); // Elements that get the .hover class
$hovers.off('mouseenter mouseleave');
$hovers.hover(function() {
$(this).stop(true,true).toggleClass('hover', 1000);
});
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.