I'd just like to hide an element on my page, after N number of pixels have been scrolled.
$(window).scroll(function(){
if($(document).scrollTop() > 200){
$('.fixedelement').css({'display': 'none'});
}
});
I thought this might work, and after 200px of scrolling the .fixedelement would vanish. Alas, it doesn't work. Any thoughts?