Created
April 23, 2016 13:23
-
-
Save Borovensky/2fef5f0a61c7f32a6b8d56a477f6fdd0 to your computer and use it in GitHub Desktop.
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
$.fn.iconHover = function () { | |
return $(this).hover( | |
function(){ | |
$(this).stop().fadeTo("fast", 1) | |
}, | |
function(){ | |
$(this).stop().fadeTo("slow", 0.5) | |
} | |
); | |
} | |
$(".your_element").iconHover(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment