Last active
December 15, 2015 22:59
-
-
Save ryanburnette/5337314 to your computer and use it in GitHub Desktop.
jQuery Hovers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment