JSFiddle - React, Tailwind, and code Playground
HTML
<div id="myDiv" class="myRelativeDiv">test</div>
CSS
.myRelativeDiv {
position:relative;
}
JavaScript
$(function() {
$("#myDiv").animate({ top: '+=585'}, 400).animate({ top: '0'}, 400);
});