Template:Team:KIT-Kyoto/hp
From 2014.igem.org
(Difference between revisions)
Line 36: | Line 36: | ||
setTimeout(function(){ | setTimeout(function(){ | ||
if(picbox = 810){ | if(picbox = 810){ | ||
- | $(".pic1 li:nth-child(4)").animate({opacity:"1"},1200); | + | $(".pic1 li:nth-child(4),.pic2 li:nth-child(4)").animate({opacity:"1"},1200); |
} | } | ||
else { | else { | ||
- | $(".pic1 li:nth-child(3)").animate({opacity:"1"},1200); | + | $(".pic1 li:nth-child(3),.pic2 li:nth-child(3)").animate({opacity:"1"},1200); |
} | } | ||
},6000); | },6000); | ||
Line 72: | Line 72: | ||
var clone = $(".pic2 li:first").clone(true); | var clone = $(".pic2 li:first").clone(true); | ||
clone.css({"opacity":"0"}); | clone.css({"opacity":"0"}); | ||
+ | if(picbox = 810){ | ||
+ | $(".pic2 li:gt(3)").css({opacity:"0"}); | ||
+ | }else { | ||
+ | $(".pic2 li:gt(2)").css({opacity:"0"}); | ||
+ | } | ||
$(".pic2 li:first").animate({ | $(".pic2 li:first").animate({ | ||
marginLeft : "-290px",opacity:"0" | marginLeft : "-290px",opacity:"0" | ||
Line 77: | Line 82: | ||
duration : 1200, | duration : 1200, | ||
complete : function() { | complete : function() { | ||
+ | if(picbox = 810){ | ||
+ | $(".pic2 li:nth-child(4)").animate({opacity:"1"},1200); | ||
+ | } | ||
+ | else { | ||
+ | $(".pic2 li:nth-child(3)").animate({opacity:"1"},1200); | ||
+ | } | ||
$(".pic2 li:first").remove(); | $(".pic2 li:first").remove(); | ||
clone.clone(true).animate({opacity:"1"},500).insertAfter($(".pic2 li:last")); | clone.clone(true).animate({opacity:"1"},500).insertAfter($(".pic2 li:last")); | ||
} | } | ||
}); | }); | ||
- | }, | + | }, 6000); |
}); | }); |
Revision as of 17:46, 26 September 2014