Template:Team:KIT-Kyoto/hp
From 2014.igem.org
(Difference between revisions)
Line 15: | Line 15: | ||
clone.css({"opacity":"0"}); | clone.css({"opacity":"0"}); | ||
$(".pic1 li:gt(3)").css({opacity:"0"}); | $(".pic1 li:gt(3)").css({opacity:"0"}); | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
$(".pic1 li:first").animate({ | $(".pic1 li:first").animate({ | ||
marginRight : "-310px",opacity:"0" | marginRight : "-310px",opacity:"0" | ||
}, { | }, { | ||
duration : 800, | duration : 800, | ||
- | complete : function() { | + | complete : function() { |
+ | if($(".pic1 li:nth-child(1)").is(':visible')){ | ||
+ | if($(".pic1 li:nth-child(2)").is(':visible')){ | ||
+ | $(".pic1 li:nth-child(3)").animate({opacity:"1"},1200); | ||
+ | } | ||
+ | else { | ||
+ | $(".pic1 li:nth-child(2)").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:43, 26 September 2014