Response title
This is preview!
You started an animation on an element, got a promise object for the element being animated, then added another animation. The promise was resolved when the element's animation queue was empty, i.e. after both animations completed.Resolve the returned Promise when all animations have ended (including those initiated in the animation callback or added later on)
...
.promise()
method returns a dynamically generated Promise that is resolved when for all elements from the collection all actions of a certain type, queued or not, have ended once.© 2013 jQuery Foundation
Sponsored by and others.