title: jQuery fading between classes
body: <p>I am looping through three classes that display different banner background images. </p>
  
  <p>I have the loop working great but want to add a fade animation between the different classes. </p>
  
  <p>Here is my current code </p>
  
  <pre><code>    var img = ['img1', 'img2', 'img3'],
      c = 0,
      run = setInterval(loop, 3000); 
  
      function loop(){ 
        $('#header').removeClass().addClass(img[++c%img.length]).fadeIn('slow'); 
      }
  </code></pre>
  
  <p>Thanks in advance</p>