Team:UCLA/Aal/javascripttemplate
From 2014.igem.org
(Difference between revisions)
Line 22: | Line 22: | ||
$('.spiderbutton').mouseover(function(){ | $('.spiderbutton').mouseover(function(){ | ||
$("html, body").animate({ scrollTop: 0 }, 500); | $("html, body").animate({ scrollTop: 0 }, 500); | ||
- | $('.spiderbutton').animate({ height: '+=10%', width: "+=10%", left: '+= | + | $('.spiderbutton').animate({ height: '+=10%', width: "+=10%", left: '+= 5%', top= '-=5%'}, 800); |
}); | }); | ||
$('.spiderbutton').mouseout(function(){ | $('.spiderbutton').mouseout(function(){ | ||
$("html, body").animate({ scrollTop: 0 }, 500); | $("html, body").animate({ scrollTop: 0 }, 500); | ||
- | $('.spiderbutton').animate({ height: '-=10%', width: "-=10%", left: '-= | + | $('.spiderbutton').animate({ height: '-=10%', width: "-=10%", left: '-= 5%', top= '+=5%'}, 800); |
}); | }); | ||
}); | }); |
Revision as of 23:26, 5 September 2014