title: scrollTop not scrolling to position
body: <p>I can't seem to be able to scroll to a set variable, am I using the correct syntax?</p>
  
  <pre><code>var offset = $(".box", this).offset().top;
  $(window).animate({scrollTop:offset}, 500);
  </code></pre>