title: Animate jQuery scrolltop
body: <p>I have a scrollTop function in jQuery but I can't animate it. Is it possible?</p>
  
  <pre><code>$(".loadmore").click(function() {
    $(this).toggleClass("up-arrow", 1000);
    $(window).scrollTop($('.docs').offset().top, 2000);
  });
  </code></pre>