so I\'m working on a Ruby on Rails app with a design given to me which calls for the navigation bar to be transparent at the top of the page, and then fade into solid white afte
Something like this might help:
window.addEventListener("scroll", function() { if (window.scrollY > 500) { $('.navbar').fadeOut(); } else { $('.navbar').fadeIn(); } },false);
Change 500 with however many pixels from the top the place is that you want to do the fadeOut at.