Template:Team:HokkaidoU Japan/About Us/JS
From 2014.igem.org
(Difference between revisions)
Line 25: | Line 25: | ||
//一行目 | //一行目 | ||
$(".show").slice(2, 8).hover(function(){ | $(".show").slice(2, 8).hover(function(){ | ||
- | $("#tori,#mami,#tamaro,#sanbon,#saitoh,#liu").animate({"top": "200px"}, 500); | + | $("#tori,#mami,#tamaro,#sanbon,#saitoh,#liu").stop(true,true).animate({"top": "200px"}, 500); |
if( $(".member-list ul li").slice(8,14).css("top")=="200px") { | if( $(".member-list ul li").slice(8,14).css("top")=="200px") { | ||
- | $("#shehata").animate({"top": "400px"}, 500); | + | $("#shehata").stop(ture,true).animate({"top": "400px"}, 500); |
} else {$("#shehata").animate({"top": "200px"}, 500); | } else {$("#shehata").animate({"top": "200px"}, 500); | ||
}; | }; | ||
- | $("#special-thanks,#itoh,#kawahata").animate({"top":"200px"},500); | + | $("#special-thanks,#itoh,#kawahata").stop(true,true).animate({"top":"200px"},500); |
},function(){ | },function(){ | ||
if( $("#tori,#mami,#tamaro,#sanbon,#saitoh,#liu").css("top")=="200px"){ | if( $("#tori,#mami,#tamaro,#sanbon,#saitoh,#liu").css("top")=="200px"){ | ||
- | $(".member-list ul li").slice(8,15).animate({"top":"0px"},500); | + | $(".member-list ul li").slice(8,15).stop(true,true).animate({"top":"0px"},500); |
- | $("#shehata").animate({"top":"0px"},500); | + | $("#shehata").stop(true,true).animate({"top":"0px"},500); |
}; | }; | ||
- | $("#special-thanks,#itoh,#kawahata").animate({"top":"-=200px"},500); | + | $("#special-thanks,#itoh,#kawahata").stop(ture,true).animate({"top":"-=200px"},500); |
}); | }); | ||
Line 42: | Line 42: | ||
//二行目 | //二行目 | ||
$(".show").slice(8, 14).hover(function(){ | $(".show").slice(8, 14).hover(function(){ | ||
- | $("#shehata").animate({"top": "200px"}, 500); | + | $("#shehata").stop(ture,true).animate({"top": "200px"}, 500); |
if( $("#tori").css("top")=="200px") { | if( $("#tori").css("top")=="200px") { | ||
- | $("#shehata").animate({"top": "400px"}, 500); | + | $("#shehata").stop(ture,true).animate({"top": "400px"}, 500); |
}; | }; | ||
$(this).queue([]); | $(this).queue([]); | ||
- | $("#special-thanks,#itoh,#kawahata").animate({"top":"200px"},500); | + | $("#special-thanks,#itoh,#kawahata").stop(true,true).animate({"top":"200px"},500); |
},function(){ | },function(){ | ||
if($("#tori").css("top")=="0px"){ | if($("#tori").css("top")=="0px"){ | ||
- | $("#shehata").animate({"top":"0px"},500); | + | $("#shehata").stop(true,true).animate({"top":"0px"},500); |
} else { | } else { | ||
- | $("#shehata").animate({"top":"200px"},500); | + | $("#shehata").stop(true,true).animate({"top":"200px"},500); |
}; | }; | ||
- | $("#special-thanks,#itoh,#kawahata").animate({"top":"-=200px"},500); | + | $("#special-thanks,#itoh,#kawahata").stop(true,true).animate({"top":"-=200px"},500); |
}); | }); |
Revision as of 08:00, 3 October 2014