Difference between revisions of "Team:Tec-Monterrey/sandbox"

m
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 = document.getElementById("hiding-block").offsetTop;
+
               var hidingPos = hiding.offsetTop;
               var bacteriaPos = document.getElementById("bacteria-nadando").offsetTop;
+
               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

Skip

E. coding
Tec-Monterrey
Seccion Acevedo Interactive Entertainement System Co. S.A. de C.V. Ind.

Contact Us

Sponsors