Team:SYSU-China/Team/Member style.js
From 2013.igem.org
Line 20: | Line 20: | ||
$(this).animate({top:'-=3px'},10,function(){ | $(this).animate({top:'-=3px'},10,function(){ | ||
$(this).css({"background":"none"}); | $(this).css({"background":"none"}); | ||
- | $(this).parent().children("div.inner_frame").animate({width: | + | $(this).parent().children("div.inner_frame").animate({width: 0},200); |
}); | }); | ||
}); | }); | ||
}); | }); |
Revision as of 02:02, 26 September 2013
$(document).ready(function(){
$("div.flash_button").mouseenter(function(){ $("div.inner_frame").stop(); $("div.flash_button").stop(); $(this).parent().children("div.inner_frame").animate({width: 450},200,function(){ $(this).css({"background":"url() no-repeat 80% 20%"}); $(this).animate({left:'+=3px'},10); $(this).animate({left:'-=3px'},10); $(this).animate({top:'+=3px'},10); $(this).animate({top:'-=3px'},10); }); }); $("div.flash_button").mouseout(function(){ $("div.inner_frame").stop(); $("div.flash_button").stop(); $(this).animate({left:'+=3px'},10); $(this).animate({left:'-=3px'},10); $(this).animate({top:'+=3px'},10); $(this).animate({top:'-=3px'},10,function(){ $(this).css({"background":"none"}); $(this).parent().children("div.inner_frame").animate({width: 0},200); }); }); });