I\'m trying to animate the font size of some text:
$(\"p\").delay(500).animate({ \"font-size\": \"+=50\" }, 1000, function() { alert(\"Done\"); });
You could just keep a flag, since they should animate simultaneously:
var done = false; $("p").delay(500).animate({ "font-size": "+=50" }, 1000, function() { if(!done) { done = true; alert("Done"); } });
Here's a demo.