Created
October 22, 2009 19:26
-
-
Save afahy/216209 to your computer and use it in GitHub Desktop.
Opacity shortcut
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($){ | |
// silly shortcut to get/set opacity | |
$.extend($.fn, { | |
opacity: function(n){ | |
return n ? this.css("opacity",n) : this.css("opacity"); | |
} | |
}); | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment