I am attempting to create a notification div that smoothly slides down when active. The sliding effect is achieved through this script:
<script type="text/javascript>
$(document).ready(function(){
$('#notice').slideDown(1000);
$('.exit').click(function(){
$("#notice").slideUp(400);
});
});
</script>
The corresponding style is as follows:
#notice {
background: #E0E0E0;
color: #FFF;
padding-left: 30px;
padding-top: 20px;
padding-bottom: 20px;
padding-right: 30px;
position: absolute;
z-index: 999999;
width: calc(100% - 60px);
top: 0;
font-weight: 200;
letter-spacing: 1px;
text-align: center;
display: none;
}
In order to have everything else move down as the div slides down, even when the lower div is in a 'position: fixed' state, I am seeking a solution to slide everything back up when the .exit link is clicked.