title: How to add 'easing' to animate/scrolltop
body: <p>I am using the following function to create a scroll animation to anchor links:</p>
  
  <pre><code>$('a').click(function(){
      $('html, body').animate(
          {scrollTop: $( $.attr(this, 'href') ).offset().top}, 
          500 );
      return false;
  });
  </code></pre>
  
  <p>I would like to add easing. However, when I add 'easing' after '500' it breaks the script:</p>
  
  <pre><code>$('a').click(function(){
      $('html, body').animate(
          {scrollTop: $( $.attr(this, 'href') ).offset().top}, 
          500, easing );
      return false;
  });
  </code></pre>
  
  <p>Any ideas what I am doing wrong?</p>