JSFiddle - React, Tailwind, and code Playground
HTML
<div id="test">
<h1>HI</h1>
<p>
Some text
</p>
</div>
CSS
#test {
position: static;
overflow: none;
}
#test h1 {
margin: 20px;
}
JavaScript
$( document ).click(function() {
$( "#test" ).toggle( "slide", 2000 );
});