Javascript sleep ....setTimeout from within setInterval javascript
<p>Does <code>setTimeout</code> work from WITHIN <code>setInterval</code>?</p>

<p>I'm writing some JavaScript to animate some DOM elements for a strange artistic project.
The best way for me to explain my question is to give an example:</p>

<p>I have 50 different divs that I need to animate by changing their position on screen, using <code>setInterval</code>. I need each div to be moving at a different rate. </p>

<p>The solution I planned to use was to have a sleep function within my larger changePosition function, so that I could pass a different sleep value for each div. This way, I could assign a unique rate of movement for each div via a dictionary. </p>

<p>The issue that I'm having is that JavaScript does not have "sleep". It only has <code>setTimeout</code>, which does not seem to be working from within my <code>setInterval</code> loop.</p>
