JSFiddle - React, Tailwind, and code Playground

by Alex Incarnati

HTML

<div class="test"></div>

CSS

.test{height:200000px; background:red;}

JavaScript

$('html,body').animate({
                scrollTop: 100,
                scrollLeft: 200
            }, 200, function(){
                $('html,body').clearQueue();
            });

//Edit the value of scrollTop to see if it works. If I had 200000 to the scrollTop it does scroll to the bottom for instance.