I\'m trying to animate the font size of some text:
$(\"p\").delay(500).animate({ \"font-size\": \"+=50\" }, 1000, function() { alert(\"Done\"); });
var $p = $("p"); var lastIndex = $p.length - 1; $p.delay(500).animate({ "font-size": "+=50" }, 1000, function() { if ($p.index($(this)) == lastIndex) { alert("Done"); } })
Demo