Team:UCLA/Aal/javascripttemplate
From 2014.igem.org
(Difference between revisions)
Line 13: | Line 13: | ||
}); | }); | ||
}); | }); | ||
- | jQuery(document).ready(function($){ | + | jQuery(document).ready(function($){ |
$('.spiderbutton').click(function(){ | $('.spiderbutton').click(function(){ | ||
$("html, body").animate({ scrollTop: 0 }, 500); | $("html, body").animate({ scrollTop: 0 }, 500); | ||
$('.spiderbutton').animate({ top: '-=90%'}, 800, function(){$('.spiderbutton').animate({ top: '+=90%'}, 3000)}); | $('.spiderbutton').animate({ top: '-=90%'}, 800, function(){$('.spiderbutton').animate({ top: '+=90%'}, 3000)}); | ||
+ | }); | ||
+ | }); | ||
+ | jQuery(document).ready(function($){ | ||
+ | $('.spiderbutton').mouseover(function(){ | ||
+ | $("html, body").animate({ scrollTop: 0 }, 500); | ||
+ | $('.spiderbutton').animate({ height: '+=50%'}, 800); | ||
}); | }); | ||
}); | }); |
Revision as of 23:20, 5 September 2014