Team:UCLA/Aal/javascripttemplate
From 2014.igem.org
(Difference between revisions)
Line 14: | Line 14: | ||
}); | }); | ||
jQuery(document).ready(function($){ | jQuery(document).ready(function($){ | ||
- | $('. | + | $('.spiderbutton2').click(function(){ |
$("html, body").animate({ scrollTop: 0 }, 500); | $("html, body").animate({ scrollTop: 0 }, 500); | ||
- | $('. | + | $('.spiderbutton2').animate({ top: '-=90%'}, 800, function(){$('.spiderbutton2').animate({ top: '+=90%'}, 3000)}); |
- | $('.spiderline').animate({ height: '-=10px'}, 800, function(){$('. | + | $('.spiderline').animate({ height: '-=10px'}, 800, function(){$('.spiderline').animate({ top: '+=10px'}, 3000)}); |
}); | }); | ||
}); | }); |
Revision as of 00:12, 6 September 2014