Team:SYSU-China/Team/Member style.js
From 2013.igem.org
(Difference between revisions)
Line 4: | Line 4: | ||
$("div.inner_frame").stop(); | $("div.inner_frame").stop(); | ||
$("div.inner_frame").animate({width: 600},300,function(){ | $("div.inner_frame").animate({width: 600},300,function(){ | ||
- | $("div.flash_button").css({"background":"https://static.igem.org/mediawiki/2013/3/39/Stein_00.png"}); | + | $("div.flash_button").css({"background":"url(https://static.igem.org/mediawiki/2013/3/39/Stein_00.png) no-repeat 50% 10%"}); |
$("div.flash_button").animate({left:'+=3px'},50); | $("div.flash_button").animate({left:'+=3px'},50); | ||
$("div.flash_button").animate({left:'-=3px'},50); | $("div.flash_button").animate({left:'-=3px'},50); |
Revision as of 05:50, 25 September 2013
$(document).ready(function(){
$("div.flash_button").mouseenter(function(){ $("div.inner_frame").stop(); $("div.inner_frame").animate({width: 600},300,function(){ $("div.flash_button").css({"background":"url() no-repeat 50% 10%"}); $("div.flash_button").animate({left:'+=3px'},50); $("div.flash_button").animate({left:'-=3px'},50); $("div.flash_button").animate({top:'+=3px'},50); $("div.flash_button").animate({top:'-=3px'},50); }); }); $("div.flash_button").mouseout(function(){ $("div.inner_frame").stop(); $("div.inner_frame").animate({width: 0},300); }); });