JS - several setTimeout in a row?
<p>Just a followup to <a href="https://stackoverflow.com/questions/37125419/js-using-a-settimeout-inside-a-setinterval-the-settimeout-has-no-effect">this thread</a>, </p>

<p>I'm making a picture move up and down, with the following code :</p>

<pre><code>icon.style.top = top-50 + "px";
setTimeout ( function() { icon.style.top = top + "px"; }, 200) ;
</code></pre>

<p>Now i'd like to implement more intermediate positions. The idea is to induce a translation effect. I tried to stack setTimeout lines, but didn't work. </p>

<p>I'm reading some stuff about clearTimeout right now, but probably your help will make it work just better. Thanks !</p>