.each doesn't wait for the function to end
<p>I have this <br></p>

<pre><code>$('li').each( function() { ...
</code></pre>

<p>inside this function there are some animations, <br>
however those animations are not finished by the time <br> 
this function is called again. <br>
Is there like a toggle to make the .each to wait <br>
for the function to end? <br></p>
