JSFiddle - React, Tailwind, and code Playground
HTML
<div class="leftContainer ">
<div class="header">System Tree</div>
<div class="mainbody">
<p>Content</p>
<p>Content</p>
<p>Content</p>
<p>Content</p>
<p>Content</p>
</div>
</div>
CSS
html, body
{
margin: 0;
border: 0 none;
padding: 0;
overflow: hidden;
}
html, body, #wrapper, #left, #right
{
height: 100%;
min-height: 400;
}
body
{
background: #eee;
}
*:focus { outline:none;border:none;}
.leftContainer
{
width:308px;
max-height: 100%;
height:100%;
background-color: #ffffff;
box-shadow: 0px 0px 7px #292929;
-moz-box-shadow: 0px 0px 7px #292929;
-webkit-box-shadow: 0px 0px 7px #292929;
}
.mainbody, .header, .footer
{
padding: 5px;
}
.mainbody
{
padding-left: 5px;
margin-top: 0;
min-height: 150px;
max-height: 650px;
height: 100%;
background-color: #F9F9F9;
}
.header
{
padding-top:15px;
padding-left:80px;
padding-right:30px;
height: 40px;
background-color: #808080;
color: #FFFFFF;
font-size: 22px;
border-bottom: 1px solid #EEE;
text-align: right;
}
JavaScript
$("div.leftContainer")
.css("margin-left",-$(this).width())
.animate({
marginLeft:0
}, 2000)
.animate({
marginLeft:-140
}, 2000);