Difference between revisions of "Team:Greece/our team"

Line 45: Line 45:
 
                         //void(document.getElementById(id+'_t').setAttribute('fill', '#000000'));
 
                         //void(document.getElementById(id+'_t').setAttribute('fill', '#000000'));
 
                         $('#'+id+'_t').addClass('animate_text_appear');
 
                         $('#'+id+'_t').addClass('animate_text_appear');
                        scrollTillBottom();
 
 
}
 
}
  
Line 60: Line 59:
 
                         void(document.getElementById('personnel').style.display = 'block');
 
                         void(document.getElementById('personnel').style.display = 'block');
 
}
 
}
 
+
               
 +
                var i = 10;
 
                 function scrollTillBottom(){
 
                 function scrollTillBottom(){
                        var i = 10;
+
                         var int = setInterval(function(){ window.scrollBy(0, 10); i += 10; if (i == 300){ clearInterval(int);} }, 20);
                         var int = setInterval(function(){
+
                            window.scrollTo(i, 0);
+
                            i += 10;
+
                            if (i == 300) clearInterval(int);
+
                        });
+
 
                 }
 
                 }
  

Revision as of 10:33, 12 August 2017