title: JS for smooth scroll to the bottom of the page
body: <p>I have a JS to make a smooth scroll from the bottom of the page to the top with this and it works:</p>
  
  <pre><code>&lt;script&gt;
  
       $("a[href='#top']").click(function() {
       $("html, body").animate({ scrollTop: 0 }, "slow");
       return true;
    });
  &lt;/script&gt;
  </code></pre>
  
  <p>But now I want to make a smooth scroll from the top to the bottom, I tried it with this:</p>
  
  <pre><code> &lt;script&gt;
  
       $("a[href='#footer']").click(function() {
       $("html, body").animate({ scrollToBottom: 0 }, "slow");
       return true;
    });
  &lt;/script&gt;`
  </code></pre>
  
  <p>It doesn't work, it's not a smooth scroll. Does anyone know what's wrong with this?</p>