http://oxfordhigh.oxfordschools.org/ this is the site that im working on and im having a problem with the header. It bounces whenever i scroll it down. This bug only occurs in IE and Chrome but in mozilla it seems fine(as i've checked on my end).
this is the javascript that i've added on the site for the fixed header:
<script type="text/javascript">
$(window).scroll(function () {
if ($(this).scrollTop() > 0 && $(window).width() > 1000) {
$('#main').css("marginTop", "220px");
$('.breadcrumb-wrapper').addClass("bread-fix-to-top");
$('#header').addClass("fix-to-top");
} else {
$('#main').css("marginTop", "0");
$('.breadcrumb-wrapper').removeClass("bread-fix-to-top");
$('#header').removeClass("fix-to-top");
}
});
</script>
Any idea on how to fix this kind of issue?