JSFiddle - React, Tailwind, and code Playground

by Shree Khanal

HTML

<div>
  Scroll down and click on anchor.
</div>

<div class="space">
</div>

<a href="#" id="drop-user-box" class="drop-user-box">Drop this mofo</a>

CSS

.space {
  height: 2000px;
}

JavaScript

$("a#drop-user-box").click(function() {
  var top = 0
  $("body").animate({
    scrollTop: top
  }, "fast", function(index, item) {
    alert("foo");
  });
  return false;
});