Skip to content

Instantly share code, notes, and snippets.

@3200creative
Created March 13, 2015 18:42
Show Gist options
  • Save 3200creative/ce7dab9bbde5aa228430 to your computer and use it in GitHub Desktop.
Save 3200creative/ce7dab9bbde5aa228430 to your computer and use it in GitHub Desktop.
Fade out on Scroll Down
$(window).scroll(function() {
$(".fade-on-scroll").css({
'opacity' : 1-(($(this).scrollTop())/250)
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment