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