title: jquery animate (left to right) loop
body: <p>What i am trying to achieve is the captions on an image slider, slide from left to right with animate() and then fadeout as the image changes, then loop once the slider has started it's loop. I've searched these forums for hours trying to find a solution for the loop but i can't seem to get any of them working. Most likely something i am missing as i am only new to learning jquery.</p>
  
  <p>I apologize if this question is a repeat, but i've tried for hours and just cant get it working.</p>
  
  <p>Below is what i have so far:
  HTML:</p>
  
  <pre><code>&lt;div class="slidein"&gt;
  
          &lt;p class="first"&gt; MATTE&lt;/p&gt; 
          &lt;p class="second"&gt;BLACK&lt;/p&gt;
          &lt;p class="third"&gt;BRO &lt;/p&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>CSS:</p>
  
  <pre><code>.slidein {
      z-index: 10000;
      left: -100px;
      top: 100px;
      position: absolute;}
  
  .first {
  
      background-color:#0C0;
      position:relative;}
  
  .second {
  
      background-color:#0C0;
      position:relative;}
  
  .third {
      width: 35px;
      background-color:#0C0;
      position:relative;}
  </code></pre>
  
  <p>jquery:</p>
  
  <pre><code>$(document).ready(function () {
  
  
      function repeat() {
          $(".first").animate({left:'200px'},100);
  
          $(".second").delay(200).animate({left:'200px'},200);
  
          $(".third").delay(300).animate({left:'200px'},300);
  
  
  
          $('.slidein').delay(3500).fadeOut(500)({
  
              },500 ,function() {
              repeat();
          });
      }
  
   repeat();       
  
  
  
  });
  </code></pre>
  
  <p>Here is a fiddle of it working but not looping once finished,
  <a href="http://jsfiddle.net/elroyz/L2Ynu/18/" rel="nofollow">http://jsfiddle.net/elroyz/L2Ynu/18/</a></p>