Template:Team:HokkaidoU Japan/About Us/JS
From 2014.igem.org
(Difference between revisions)
Line 42: | Line 42: | ||
//二行目 | //二行目 | ||
$(".show").slice(8, 14).hover(function(){ | $(".show").slice(8, 14).hover(function(){ | ||
- | $("#shehata").animate({"top": "200px"}, 500); | + | $("#shehata").stop().animate({"top": "200px"}, 500); |
if( $("#tori").css("top")=="200px") { | if( $("#tori").css("top")=="200px") { | ||
- | $("#shehata").animate({"top": "400px"}, 500); | + | $("#shehata").stop().animate({"top": "400px"}, 500); |
}; | }; | ||
- | + | $("#special-thanks,#itoh,#kawahata").stop().animate({"top":"200px"},500); | |
- | $("#special-thanks,#itoh,#kawahata").stop( | + | |
},function(){ | },function(){ | ||
if($("#tori").css("top")=="0px"){ | if($("#tori").css("top")=="0px"){ | ||
- | $("#shehata").stop( | + | $("#shehata").stop().animate({"top":"0px"},500); |
} else { | } else { | ||
- | $("#shehata").stop( | + | $("#shehata").stop().animate({"top":"200px"},500); |
}; | }; | ||
- | $("#special-thanks,#itoh,#kawahata").stop( | + | $("#special-thanks,#itoh,#kawahata").stop().animate({"top":"-=200px"},500); |
}); | }); |
Revision as of 08:13, 3 October 2014