I'm trying to tag a div as the page scrolls down (scrolling the page is not just the fadeOut effect). I adjust the opacity of the div as the page scrolls with this piece of code:
$(window).scroll(function() { var scroll = $(window).scrollTop(); $('.logo_container').css({'opacity':( 100-scroll )/100}); });
My problem here is that for me it disappears too quickly, I would like a much more subtle disappearance when the user scrolls. Can anyone think of a better logic to make a slower, more subtle disappearance.
here is JSFIDDLE showing my code in action
source share