Better way than setInterval?
<p>I have the current function below, but feel like there is a much better way to write the same thing.  I am looking for some insight on the most optimized way to write the same function below and why.</p>

<p>Note this is all inside of <code>$(function(){});</code></p>

<pre><code>m = function(){
  $("#id").animate({marginRight : 0}, 'slow', function(){
       $("#id").animate({marginRight : "15px"}, 'slow');
     })
} 
 setInterval(m, 700)      
</code></pre>
