title: jquery animated Line with animated gif from left to right loop
body: <p>I managed to make it work but i want the loop to be from left:0 to 100%. Imagine you have a circle and you make the effect start in one point and then the effect goes arround the circle until it starts again (loop).</p>
  
  <pre><code>&lt;script&gt;
  $( window ).load(function() {
   (function loop(){
      $("#mark").animate({
      'marginLeft': '+=100%'
  }, 5000);
  $("#mark").animate({
      'marginLeft': '-=100%'
  }, 5000, loop);
  })();
  });
  &lt;/script&gt;
  </code></pre>