How to refresh/reload CSS style in loop?
<p>I have this function which should to change <code>&lt;div&gt;</code> left position in loop making it to look like it is moving. But instead it just jumps to the end position.</p>

<pre><code>function anim (id, left) {
    $('#k' + id).css('left', parseInt($('#k' + id).css('left')) + 1);
    if(parseInt($('#k' + id).css('left')) == left){
        return;
    }
   setTimeout(anim(id, left), 100);
}
</code></pre>

<p>I want it to look like jQuery animate but without using jQuery animate function. <strong>What I miss?</strong></p>

<p>EDIT
working example: <a href="http://jsfiddle.net/h7MuB/21/" rel="nofollow">http://jsfiddle.net/h7MuB/21/</a></p>
