Template:Team:KIT-Kyoto/hp
From 2014.igem.org
(Difference between revisions)
Line 12: | Line 12: | ||
setTimeout(function(){ | setTimeout(function(){ | ||
- | + | if($(".pic1 li:nth-child(3)").is(':visible')){ | |
- | + | ||
$(".pic1 li:nth-child(4)").animate({opacity:"1"},1200); | $(".pic1 li:nth-child(4)").animate({opacity:"1"},1200); | ||
} | } | ||
else { | else { | ||
$(".pic1 li:nth-child(3)").animate({opacity:"1"},1200); | $(".pic1 li:nth-child(3)").animate({opacity:"1"},1200); | ||
- | + | } | |
},6000); | },6000); | ||
Line 34: | Line 33: | ||
duration : 800, | duration : 800, | ||
complete : function() { | complete : function() { | ||
- | + | if($(".pic1 li:nth-child(3)").is(':visible')){ | |
- | + | ||
$(".pic1 li:nth-child(4)").animate({opacity:"1"},1200); | $(".pic1 li:nth-child(4)").animate({opacity:"1"},1200); | ||
} | } | ||
else { | else { | ||
$(".pic1 li:nth-child(3)").animate({opacity:"1"},1200); | $(".pic1 li:nth-child(3)").animate({opacity:"1"},1200); | ||
- | + | } | |
$(".pic1 li:first").remove(); | $(".pic1 li:first").remove(); | ||
clone.clone(true).animate({opacity:"1"},500).insertAfter($(".pic1 li:last")); | clone.clone(true).animate({opacity:"1"},500).insertAfter($(".pic1 li:last")); |
Revision as of 16:57, 26 September 2014