title: Fade between two colors with JavaScript / jQuery
body: <p>Is it possible to fade between colors? </p>
  
  <p>I'm working on a small project and based on the time elapsed since opening the site, the background is supposed to change colors. It's working fine but it's based on seconds elapsed and cutting hard to the next color in line. </p>
  
  <p>so, eg.:</p>
  
  <pre><code>  if(totalSeconds &gt; 10){
       $('.lead').css('color', '#95EB00');
       $('body').css('background-color', '#95EB00');
    }
  
    if(totalSeconds &gt; 15){
       $('.lead').css('color', '#09E845');
       $('body').css('background-color', '#09E845');
    }
  </code></pre>
  
  <p>is it possible to change colors in a time interval from x-seconds? and fade to the next color?</p>