Skip to content

Instantly share code, notes, and snippets.

@hughevans
Created June 3, 2012 00:38
Show Gist options
  • Save hughevans/2860741 to your computer and use it in GitHub Desktop.
Save hughevans/2860741 to your computer and use it in GitHub Desktop.
var showBody = function() {
return $.Deferred(function(def) {
$("body").fadeIn(1000, def.resolve);
});
};
showBody().then(function() {
console.log("body faded in now, let’s dance.");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment