How to chain multiple group of animations in jquery?
<p>Lets say I have several functions where I do some kind of animations and some other things:</p>

<pre><code>function animations1() {
    $('some_object').animation();
    ...
}

function animations2() {
    $('some_object').animation();
    ...
}

function animations3() {
    $('some_object').animation();
    ...
}
</code></pre>

<p>What would be the best way to chain these functions, e.i. call <code>animations2</code> when <code>animations1</code> is completed, and call <code>animations3</code>, when <code>animations2</code> is completed?</p>
