Template:Team:HokkaidoU Japan/About Us/JS
From 2014.igem.org
(Difference between revisions)
Line 12: | Line 12: | ||
$(".show").hover(function(){ | $(".show").hover(function(){ | ||
var number =$(".show").index(this); | var number =$(".show").index(this); | ||
- | $(".overlay").eq(number).stop( | + | $(".overlay").eq(number).stop().show(500); |
}, function() { | }, function() { | ||
var number =$(".show").index(this); | var number =$(".show").index(this); | ||
- | $(".overlay").eq(number).stop( | + | $(".overlay").eq(number).stop().hide(500); |
}); | }); | ||
Line 33: | Line 33: | ||
},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).stop( | + | $(".member-list ul li").slice(8,15).stop().animate({"top":"0px"},500); |
- | $("#shehata").stop( | + | $("#shehata").stop().animate({"top":"0px"},500); |
}; | }; | ||
$("#special-thanks,#itoh,#kawahata").stop(true,true).animate({"top":"-=200px"},500); | $("#special-thanks,#itoh,#kawahata").stop(true,true).animate({"top":"-=200px"},500); |
Revision as of 08:14, 3 October 2014