title: Smooth JavaScript/jQuery scroll to element
body: <p>I'm trying to make a horizontal scroll website, but I don't know how to <em>smoothly</em> scroll from one element to the other.
  I tried the following code:</p>
  
  <pre><code>$("a[href='#top']").click(function() {
    $("body").animate({ scrollTop: 0 }, "slow");
    return false;
  });
  </code></pre>
  
  <p>But it only scrolls to the top, I also tried the jQuery-plugin <a href="http://plugins.jquery.com/project/ScrollTo" rel="nofollow">ScrollTo</a>, but I just can't get it to work, I also tried the jQuery plugin:</p>
  
  <pre><code>$('.click').click(function(){
      $.scrollTo( '.last', 800, {easing:'elasout'});
  });
  </code></pre>
  
  <p>But also without succes.</p>
  
  <p>Does anyone know a good, easy to understand, sample I can use? Thanks in advance!</p>