JSFiddle - React, Tailwind, and code Playground
HTML
<div></div>
CSS
div{
height: 3000px;
background : red;
margin : 20px;
}
JavaScript
time = 3000;
$("html, body").animate({ scrollTop: $(document).height() }, 2000, function() {
setTimeout(function() {
location.reload();
}, time)
});