EstebanDLPT (Talk | contribs) m |
EstebanDLPT (Talk | contribs) m |
||
Line 258: | Line 258: | ||
//******************************************************* SCROLL OPACITY *********************************************** | //******************************************************* SCROLL OPACITY *********************************************** | ||
− | + | var hiding = document.getElementById("hiding-block"); | |
+ | var bacteria = document.document.getElementById("bacteria-nadando"); | ||
$(window).scroll(function(event) { | $(window).scroll(function(event) { | ||
− | var hidingPos = | + | var hidingPos = hiding.offsetTop; |
− | var bacteriaPos = | + | var bacteriaPos = bacteria.offsetTop; |
window.alert("Pos bacteria: " + bacteriaPos + " Pos hiding: " + hidingPos); | window.alert("Pos bacteria: " + bacteriaPos + " Pos hiding: " + hidingPos); |
Revision as of 19:07, 13 October 2018