Why this small piece of jQuery code is not working on Internet Explorer? IT works fine in all the Webkit browsers.
$('#logo').toggle(function() {
$('#about').animate({'top': '-400px'},'slow');
}, function() {
$('#about').animate({'top': '0px'},'slow');
});
CSS:
#logo {
margin:-55px auto 0 auto;
cursor:pointer;
}
#about {
width:100%;
height:200px;
position:fixed;
top:0px;
z-index: 3000;
}
HTML
<div id="header">
<div id="about">
<p>test</p>
<img id="logo2" src="assets/img/logokleinhover.png" alt="Logo" />
</div>
</div>