JSFiddle - React, Tailwind, and code Playground
HTML
<div class="text">My Text</div>
CSS
.text { position:absolute; top: 500px; left:0;border: 1px solid #CCC;width:200px;padding:5px; }
JavaScript
$(".text").animate({ top:0 }, 5000, function() { alert("Animation Complete"); });