title: First Transition not smooth jQuery fade in/out
body: <p>I have some jQuery codes that cycles through a series of divs. I have it so the current div fades out and the next div then fades in in its place. The problem is on the first transition, the visible div doesn't fade out, it just disappears. After that first transition, the rest of the transitions are smooth with proper fade in/out motion. The following is an example of the divs:</p>
  
  <pre><code>&lt;div id="testimonials"&gt;
      &lt;div class="testimony current"&gt;
          &lt;p&gt;Text1&lt;/p&gt;
      &lt;/div&gt;
      &lt;div class="testimony"&gt;
          &lt;p&gt;Text2&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>And the following is the jQuery for the transitions:</p>
  
  <pre><code>$(document).ready(function() {
      var cycle = window.setInterval(next, 6000);
  
      function next() {
          $('#testimonials .current').removeClass('current').fadeOut(500).next().add('#testimonials div:first').last().fadeIn(2000).addClass('current');
      }
  });
  </code></pre>
  
  <p>You can see the awkward first transition at: <a href="http://jrubins.webfactional.com/tamid/vision.php" rel="nofollow">http://jrubins.webfactional.com/tamid/vision.php</a></p>