Skip to content

Instantly share code, notes, and snippets.

@rdela
Created August 2, 2011 23:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rdela/1121460 to your computer and use it in GitHub Desktop.
Save rdela/1121460 to your computer and use it in GitHub Desktop.
mikeHide by SlexAxton, "show() and hide() for visibility (not display)" - mahemoff
// https://twitter.com/#!/slexaxton/status/98504141877411842
$.fn.mikeHide = function (t,cb) {
return this.animate({
opacity:0
},'swing',t,cb);
};
@rdela
Copy link
Author

rdela commented Aug 2, 2011

so we also need

$.fn.mikeShow = function (t,cb) { 
  return this.animate({
    opacity:1
  },'swing',t,cb);
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment