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

m
m
Line 258: Line 258:
 
//******************************************************* SCROLL OPACITY ***********************************************
 
//******************************************************* SCROLL OPACITY ***********************************************
  
            $(window).scroll(function(event) {
+
               var hidingPos = document.getElementById("hiding-block").offsetTop;
               var hiding = document.getElementById("hiding-block");
+
              var hidingPos = hiding.offsetTop;
+
 
               var bacteriaPos = document.getElementById("bacteria-nadando").offsetTop;
 
               var bacteriaPos = document.getElementById("bacteria-nadando").offsetTop;
 +
 +
            $(window).scroll(function(event) {
  
 
               window.alert("Pos bacteria: " + bacteriaPos + " Pos hiding: " + hidingPos);
 
               window.alert("Pos bacteria: " + bacteriaPos + " Pos hiding: " + hidingPos);

Revision as of 18:54, 13 October 2018

Skip

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

Contact Us

Sponsors