EstebanDLPT (Talk | contribs) m |
EstebanDLPT (Talk | contribs) m |
||
Line 214: | Line 214: | ||
var timeoutVar = setTimeout(function(){$(window).scrollTop(0);},8000); | var timeoutVar = setTimeout(function(){$(window).scrollTop(0);},8000); | ||
+ | var elmnt = document.getElementById("#final-line"); | ||
+ | var final = elmnt.offsetHeight; | ||
function slideVideo() { | function slideVideo() { | ||
Line 241: | Line 243: | ||
$(window).scroll(function(event) { | $(window).scroll(function(event) { | ||
var scroll = $(window).scrollTop(); | var scroll = $(window).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:23, 12 October 2018