I\'m trying to animate the font size of some text:
$(\"p\").delay(500).animate({
\"font-size\": \"+=50\"
}, 1000, function() {
alert(\"Done\");
});
Just to notice, you can also use a promise object:
Return a Promise object to observe when all actions of a certain type bound to the collection, queued or not, have finished.
First example (demo):
$("p").delay(500).animate({
"font-size": "+=50"
}, 1000).promise().done(function(){
alert("done");
});
Second example (demo):
$.when($("p").delay(500).animate({
"font-size": "+=50"
}, 1000)).done(function(){
alert("done");
});