JSFiddle - React, Tailwind, and code Playground

by doug65536

HTML

<button type="button">Show</button>
<div id="test">Test</div>

CSS

#test {
    left: 50px;
    top: -300px;
    height: 150px;
    width: 400px;
    position: fixed;
    border: solid black 1px;
    border-radius: 8px;
    background: white;
}

JavaScript

$('button').on('click', function() {
    $('#test').animate({top: '8px'}, 500);
});