title: How can I make this a better recursive animated jQuery script?
body: <p>The idea is to animate a cloud div and to have it animate back and forth horizontally in perpetuity. This works, but unfortunately I think it's prone to memory leaks and UI lag. Any advice would be appreciate, thanks.</p>
  
  <pre><code>function animateCloud() {
      $('#cloud').animate({ right: '+=500' }, { duration: 35000, easing: "linear", queue: true });
      animateOpposite();
  }
  
  function animateOpposite() {
      $('#cloud').animate({ right: '-=500' }, { duration: 35000, easing: "linear", queue: true });
      animateCloud();
  }
  
  $(document).ready(function() {
      animateCloud();
  });
  </code></pre>