Created
December 9, 2014 01:36
-
-
Save devdays/8b3cd29c43f01ba0cef8 to your computer and use it in GitHub Desktop.
Object JavaScript - jQuery.promise example
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
$('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