The API is a little confusing because animate
returns a reference to the element to enable chaining.
But you can do this:
$element.animate(...);
$element.promise().then(function() { ... });
Posted by Henning Koch to makandra dev (2015-01-09 10:39)