How can I call a single function after an animation? That is, a function that does not iterate upon each matched element but only once?
<ul> <li>1</li> <li>2</li> <li>3</li> </ul> $('ul li').animate({left: 450}, "slow").queue(function(){ /* this function should only iterate once */}); If I simply call the function after the animation in the code, it seems to be called right after the animation starts. Thanks, suprfish