m |
|||
Line 336: | Line 336: | ||
if(home){ | if(home){ | ||
jQuery(".main-image").css({ opacity: 0 }); | jQuery(".main-image").css({ opacity: 0 }); | ||
− | jQuery(".main-image").animate({ opacity: 1 }, | + | jQuery(".main-image").animate({ opacity: 1 },500); |
}else{ | }else{ | ||
jQuery(".main-image").css({ opacity: 0 }); | jQuery(".main-image").css({ opacity: 0 }); | ||
− | jQuery(".main-image").animate({ opacity: 1 }, | + | jQuery(".main-image").animate({ opacity: 1 },500,function(){ |
setTimeout(function(){ jQuery("html, body").animate({ scrollTop: "575px" },1000); }, 1000); | setTimeout(function(){ jQuery("html, body").animate({ scrollTop: "575px" },1000); }, 1000); | ||
}); | }); |
Revision as of 13:04, 14 October 2016
![](https://static.igem.org/mediawiki/2016/2/25/T--IngenuityLab_Canada--il_icons_img.jpg)