title: jquery animate scrolltop callback
body: <p>I have the following jquery that scrolls the page to the top, then performs a callback function. </p>
  
  <p>The problem is that even if the page is already at the top, it still waits for the '1000' to elapse before performing the callback, which i dont want it to.</p>
  
  <pre><code>$('html').animate({scrollTop:0}, 1000, 'swing', function(){
  
  //do something
  
  });
  </code></pre>