Skip to content

Instantly share code, notes, and snippets.

@trey
Created October 9, 2008 21:14
Show Gist options
  • Save trey/15896 to your computer and use it in GitHub Desktop.
Save trey/15896 to your computer and use it in GitHub Desktop.
jQuery FadeToggle
// http://www.learningjquery.com/2008/02/simple-effects-plugins
jQuery.fn.fadeToggle = function(speed, easing, callback) {
return this.animate({opacity: 'toggle'}, speed, easing, callback);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment