title: JQuery Animate ScrollTop doesn't work
body: <p>I'm trying to make the page scroll down to '.block3' on clicking the green block. What am I missing here? I can't seem to get it working and I checked similar threads with no luck.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(function() {
    $('.down').click(function() {
      alert("y no work?");
      $('html', 'body').animate({
        scrollTop: $('.block3').offset().top
      }, 800, "easeOutQuart");
    });
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.down {
    background: green;
    width: 50px;
    height: 50px;
  }
  .block1,.block2,.block3 {
    background: red;
    width: 200px;
    height: 600px;
    margin: 1em 0;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;div class="down"&gt;&lt;/div&gt;
  &lt;div class="block1"&gt;&lt;/div&gt;
  &lt;div class="block2"&gt;&lt;/div&gt;
  &lt;div class="block3"&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>