JSFiddle - React, Tailwind, and code Playground
HTML
<body>
<header id="top">
<p>top</p>
</header>
<div class="emblem"></div>
<section id="middle"></section>
<section id="about">
<div class="about"></div>
</section>
<section id="contact">
<div class="contact"></div>
</section>
</body>
CSS
body {
margin:0;
padding:0;
border:0;
font-size: 2em;
display:block;
background:white;
}
body.h1 {
font-size: 2em;
}
header, section {
margin-top:0;
padding:0;
height:0;
}
p {
margin: 0 0 1em;
padding: 0;
}
#top {
background:purple;
height:250px;
}
#middle {
background:gray;
height:472px;
}
#about {
background:green;
height:400px;
position: relative;
}
.about {
background:black;
height:45px;
width:325px;
margin:6px 0px 0px 4px;
display: inline-block;
}
#contact {
background:orange;
height:200px;
}
.contact {
background:black;
height:45px;
width:325px;
margin:6px 0px 0px 4px;
display: inline-block;
}
.emblem {
background:black;
height:375px;
width:280px;
float:right;
margin-top:-125px;
margin-right:30px;
}
JavaScript
$(".about").toggle(function() {
$('#about').animate({height:'45px'},"slow");
$('.about').animate({width:'100%', height:'45px', margin:'0px'},"slow");
}, function() {
$('#about').animate({height:'400px'},"slow");
$('.about').animate({width:'325px', margin:'6px 0px 0px 4px'},"slow");
});