 <p>The <code>animate</code> functions has its own callback function. Use it like this:</p> <pre><code>$("#pin01").animate({left: '650px'}, 500, function() { $("#pin02").animate({left: '350px'}); }); </code></pre> <p>The 500, is the delay, after the completion of the first animation, you can set it to be 0 if you do not want any delay. And the delay is given in <code>ms</code> (milliseconds).</p>