Adding some parallax scrolling background images to my site using this awesome plugin:
Looking to achieve a fade out effect on user scroll, similar to what is seen on this cool website:
Tried implementing the code below but it doesn't seem to work due to how the plugin functions:
$(window).scroll(function() {
$(".parallax-holder").css({
'opacity' : 1-(($(this).scrollTop())/250)
});
});
Created a pen to demonstrate progress so far:
http://codepen.io/mikehdesign/pen/KVKNyr
Any suggestions on getting the image to fade out on scroll? Do I need to adjust the jQuery target or consider switching plugins? There are multiple parallax images on the page that I want to affect individually.
Appreciate any help!