JSFiddle - React, Tailwind, and code Playground
by ZeNz0r
HTML
<div class="body">
<div class="wrap">
<div class="footerPopup></div>
<div class=" clearfloat "></div>
<div class="footer"></div>
<div class="clearfloat"></div>
</div>
</div>
CSS
.body {
width:600px;
height:600px;
margin:0 auto;
z-index:-100px;
}
.wrap {
position: fixed;
bottom: 0px;
min-height: 50px;/* increase to see the div */
width: 600px;
background:red;
}
.footer {
padding: 10px 0px;
background-color:#3E4F5A;
position: fixed;
width: 600px;
bottom: 0px;
height: 20px;
}
.footerPopup {
display:none;
height: 250px;
margin-bottom: 40px;
background-color:#FF8F00;
}
.clearfloat {
clear:both;
height:0;
font-size: 1px;
line-height: 0px;
}
JavaScript
/*$('.wrap').hover(function () {
$('.footerPopup').slideToggle('slow');
});*/
$('.wrap') // replaced by .slideToggle
.mouseover(function() {
$('.footerPopup').css({"display":"block"});
})
.mouseout(function() {
$('.footerPopup').css({"display":"none"});
});