title: Background image load with animation
body: <p>I use a little script for showing images as backgrounds inside divs. The problem is that I need some animation for this but nothing I have tried works, my actual script is this:</p>
  
  <pre><code>var valimg="image_1.jpg";
  jQuery("#sw_pic").css("background-image",""+valimg);
  jQuery("#sw_pic").fadeIn(2000);
  </code></pre>
  
  <p>The problem, for example, is when I run this, it doesn't generate the fade effect, also I tried jQuery's <code>animate()</code> but with the same result. Only opacity seems to work, but no other.</p>
  
  <p>How I can use this or write code that works finally and get some effect when loading images as background?</p>
  
  <p>Regards and thank´s for the help</p>