Skip to content

Instantly share code, notes, and snippets.

@devdays
Created December 9, 2014 01:36
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 devdays/8b3cd29c43f01ba0cef8 to your computer and use it in GitHub Desktop.
Save devdays/8b3cd29c43f01ba0cef8 to your computer and use it in GitHub Desktop.
Object JavaScript - jQuery.promise example
$('div.special').fadeIn(5000).promise()
.then(function() {
// run when the animation succeeds
}).then(function() {
// also run when the animation succeeds
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment