title: jquery slide not fluid using animate
body: <p>I need to do a simple jquery slide. I put some images in a div and i use the animate function to change margin value on it. It works good but the problem is that the slide is not fluid on change images. The image that has to be hide disappear withou sliding (it does as if i use .hide() method). Here is the code i write:</p>
  
  <pre><code>$('#slider-container').animate({ marginLeft: "-" + margin_slider + "px"}, 500 );
  </code></pre>
  
  <p>while the html code is:</p>
  
  <pre><code>&lt;div id="slider"&gt;
      &lt;div id="slider-container"&gt;
          &lt;img src="image1" /&gt;
          &lt;img src="image2" /&gt;
          &lt;img src="image3" /&gt;
          &lt;img src="image4" /&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>div slider has a fixed width (equals to image width) and has overflow: hidden.
  How can i do?
  Thanks, Mattia</p>