Template:Team:KIT-Kyoto/hp
From 2014.igem.org
(Difference between revisions)
Line 66: | Line 66: | ||
var loop = setInterval(function() { | var loop = setInterval(function() { | ||
var clone = $(".pic2 li:first").clone(true); | var clone = $(".pic2 li:first").clone(true); | ||
- | if(picbox = | + | if(picbox >= 541){ |
$(".pic2 li:gt(2)").css({opacity:"0"}); | $(".pic2 li:gt(2)").css({opacity:"0"}); | ||
}else { | }else { | ||
- | $(".pic2 li:gt( | + | $(".pic2 li:gt(0)").css({opacity:"0"}); |
} | } | ||
$(".pic2 li:first").animate({ | $(".pic2 li:first").animate({ | ||
Line 76: | Line 76: | ||
duration : 800, | duration : 800, | ||
complete : function() { | complete : function() { | ||
- | if(picbox = | + | if(picbox >= 541){ |
$(".pic2 li:nth-child(4)").animate({opacity:"1"},1600); | $(".pic2 li:nth-child(4)").animate({opacity:"1"},1600); | ||
} | } |
Revision as of 18:56, 26 September 2014