Template:Team:KIT-Kyoto/hp
From 2014.igem.org
(Difference between revisions)
Line 14: | Line 14: | ||
var clone = $(".pic1 li:first").clone(true); | var clone = $(".pic1 li:first").clone(true); | ||
clone.css({"opacity":"0"}); | clone.css({"opacity":"0"}); | ||
+ | if($(".pic1 li:second").is(':hidden')){ | ||
+ | $(".pic1 li:second").fadeIn() | ||
+ | }else { | ||
+ | $(".pic1 li:third").fadeIn() | ||
+ | } | ||
$(".pic1 li:first").animate({ | $(".pic1 li:first").animate({ | ||
marginRight : "-310px",opacity:"0" | marginRight : "-310px",opacity:"0" | ||
}, { | }, { | ||
- | duration : | + | duration : 800, |
complete : function() { | complete : function() { | ||
$(".pic1 li:first").remove(); | $(".pic1 li:first").remove(); | ||
Line 23: | Line 28: | ||
} | } | ||
}); | }); | ||
- | }, | + | }, 6000); |
Revision as of 16:10, 26 September 2014