JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://ruseller.com/js/jquery.easing.js"></script>
<script src="http://ruseller.com/js/jquery.scroll.pack.js"></script>
<a href="#" id="toTop">^ Наверх ^</a>
прокрути скролл >>>>

CSS

body{height:1500px;}
#toTop{display:block;cursor:pointer;width:100px;background:#f1f1f1;border:1px solid #ccc;border-radius:5px;text-align:center;padding:5px;position:fixed;bottom:20px;right:320px;cursor:pointer;color:#666;text-decoration:none;z-index:100}

JavaScript

$(function() {
    $("#toTop").scrollToTop({speed:1000, start:1000});
});