EstebanDLPT (Talk | contribs) m |
EstebanDLPT (Talk | contribs) m |
||
Line 231: | Line 231: | ||
$(window).scroll(function(event) { | $(window).scroll(function(event) { | ||
− | var scroll = | + | var scroll = document.body.scrollTop(); |
var scrollOpacity = map(scroll, 0, 350, 1, 0); | var scrollOpacity = map(scroll, 0, 350, 1, 0); | ||
//var scrollFade = map(scroll, 350, 0, 0, 1); | //var scrollFade = map(scroll, 350, 0, 0, 1); |
Revision as of 22:04, 12 October 2018