JSFiddle - React, Tailwind, and code Playground
by Brodingo
HTML
<div id="res">
<h2>Click me</h2>
</div>
CSS
#res {
position: fixed;
bottom: 0;
transform: translateY(180px);
width: 100%;
height: 200px;
background-color: steelblue;
-webkit-transition: all .6s ease;
-moz-transition: all .6s ease;
-ms-transition: all .6s ease;
-o-transition: all .6s ease;
transition: all .6s ease;
}
#res.open {
transform: translateY(0PX);
}
JavaScript
$res = $('#res');
$res.find('h2').on('click', function(){
$res.toggleClass('open');
});