I got this script:
<script>
window.addEventListener("scroll",function() {
if(window.scrollY > 200) {
$('#menuFixo').slideUp(400).fadeIn(400);
}
else {
$('#menuFixo').slideDown(400).fadeOut(400);
}
}, false);
</script>
How do I to hide #menuFixo content when I'm scrolling? This script is almost done, but I got some issues, when I've scrolling serveral times the effects keep running for each scroll behavior with delay. Probrably is needle set a timeout to avoid unnecessary repeating. I need exactly that #menuFixo's content start hiding when I'd scrolling on 200px of page, and stop hiding before this.
Example with the same issue, try scrolling up and down several times, the page keep hiding with delay: http://jsfiddle.net/LJVMH/
I'll explain my case, I got this menu called #menuFixo, when the page is on the top I want to show it, but when the user is scrolling the page means that he is looking for something else, so I'll clean the page, removing my menu to improve the user experience, the script's goal is to have a clean page (without menu) my customer would can to find faster what he wants. But after scrolling I want to show again my menu (animated), now It would can be useful to him.