title: How to Instantly Scroll to Position?
body: <p>How to instantly scroll window to some position with JavaScript, when smooth-scrolling is enabled?</p>
  
  <pre class="lang-css prettyprint-override"><code>:root {
      scroll-behavior: smooth;
  }
  </code></pre>
  
  <p>Is there a way to ignore this CSS rule? Something like this:</p>
  
  <pre class="lang-js prettyprint-override"><code>window.scrollBy({ top: 0, behavior: 'instantly' });
  </code></pre>