JSFiddle - React, Tailwind, and code Playground
HTML
<p>there is a button below</p>
<p>there is a button below</p>
<p>there is a button below</p>
<p>there is a button below</p>
<p>there is a button below</p>
<p>there is a button below</p>
<p>there is a button below</p>
<p>there is a button below</p>
<p>there is a button below</p>
<p>there is a button below</p>
<p>there is a button below</p>
<p>there is a button below</p>
<p>there is a button below</p>
<p>there is a button below</p>
<p>there is a button below</p>
<p>there is a button below</p>
<p>there is a button below</p>
<p>there is a button below</p>
<p>there is a button below</p>
<p>there is a button below</p>
<p>there is a button below</p>
<p>there is a button below</p>
<p>there is a button below</p>
<p>there is a button below</p>
<p>there is a button below</p>
<p>there is a button below</p>
<p>there is a button below</p>
<button>click me</button>
JavaScript
$("button").on("click", function(){
$("html,body").animate({ scrollTop: 10 }, 'slow');
});