title: Reset and loop jquery animation
body: <p>I am animating some HTML objects to look like snowflakes falling but am having some trouble on the loop.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>//animation function
  function snowflakeAnimate(index) {
      //random numbers
      //time
      var nTime = randomRange(9000,35000);
      var randTime = Math.round(nTime);
  
      //delay
      var nDelay = randomRange(200,35000);
      var randDelay = Math.round(nDelay);
  
      $(this).delay(randDelay).animate({
          marginTop: "+600px"
      }, randTime);
  };
  
  $(".tweet").each(snowflakeAnimate);
  </code></pre>
  
  <p>So all it is doing at the moment is animating a snowflake by increasing the top margin to 600. The delay and animation speed are set by generating a random number. My question is how do I reset the snowflake to the top and then run the animation again so it never stops falling.</p>