I am using a jquery scripts to cause my header to remain fixed to the top whilst scrolling. But at the moment, it's animated and that's quite a distraction. Is there a way I can modify the script so that it doesn't animate?
JQuery;
<script type="text/javascript">
$().ready(function() {
var $scrollingDiv = $("#header");
$(window).scroll(function(){
$scrollingDiv.stop().animate({"marginTop": ($(window).scrollTop() + 0) + "px"}, "fixed" );
});
});
</script>
Html;
<div id="header">Content</div>