Team:SSTi-SZGD/js/Description

/*延时加载*/ $(function(){ var winHeight=$(window).height(); var Project_IntroductionTop=$(".Content").offset().top-$(window).scrollTop(); var footerTop=$(".footer_box").offset().top-$(window).scrollTop(); if(Project_IntroductionTop<winHeight-100){ setTimeout(function(){ $(".Project_Introduction").addClass("a-bouncein"); $(".Project_Introduction").css("display","block"); },150); } if(footerTop<winHeight-100){ setTimeout(function(){ $(".footer").addClass("a-fadein"); $(".footer").css("display","block"); },150); } $(window).scroll(function(){ winHeight=$(window).height(); Project_IntroductionTop=$(".Content").offset().top-$(window).scrollTop(); footerTop=$(".footer_box").offset().top-$(window).scrollTop(); if(Project_IntroductionTop<winHeight-100){ setTimeout(function(){ $(".Project_Introduction").addClass("a-bouncein"); $(".Project_Introduction").css("display","block"); },150); } if(footerTop<winHeight-100){ setTimeout(function(){ $(".footer").addClass("a-fadein"); $(".footer").css("display","block"); },150); } }); });