I just wanted to hide an element on my page, after scrolling N number of pixels.
$(window).scroll(function(){ if($(document).scrollTop() > 200){ $('.fixedelement').css({'display': 'none'}); } });
I thought this might work, and after the scroll scroll through 200 pixels disappears. Alas, this does not work. Any thoughts?
source share