I have a menu that appears when you scroll past a certain point it looks fine but sometimes when scrolling back up or down it leaves white marks on the page and the text sometimes moves, usually when it hits certain objects (for example it shakes 1pixel and then back when it hits the bottom of the slideshow). Obviously this won't be on every pc but it is a problem I'd like to fix and jQuery isn't my strongest point. Another thing is if you resize the window to be mobile sized I have a small menu (again when you scroll down the page as I haven't styled the proper positioning yet) and when clicking the menu (especially on a mobile device) it is very laggy, i would like this to be smoother. can you help improve my code? Here's is the site http://alexn.co.uk/Mono2013/Monolith/index.html and here is the code:
$(window).scroll(function () {
var $fadeHeader = $("#cartBanner"),
top = $(this).scrollTop();
if (top > 184) {
$fadeHeader.css('height', '35px');
} else {
$fadeHeader.css('height', '0');
}
});
$(document).ready(function(){
$('#menuToggle').click(function(){
$('#cartBanner').toggleClass('expanded');
});
});
Another thing, when i scroll up and down over the bottom of the slideshow the fonts change/blur, its noticeable on the M, the flick on the M dissapears and the nav text changes appearance
EDIT: Seems to be an issue with flexslider, changing the slideshow to bootstrap's has eradicated the issue.