Team:UCLA/Aal/javascripttemplate
From 2014.igem.org
(Difference between revisions)
Line 13: | Line 13: | ||
}); | }); | ||
}); | }); | ||
- | jQuery(document).ready(function($){ | + | jQuery(document).ready(function($){ var hi= "false"; |
$('.spiderbutton').click(function(){ | $('.spiderbutton').click(function(){ | ||
$("html, body").animate({ scrollTop: 0 }, 500); | $("html, body").animate({ scrollTop: 0 }, 500); | ||
- | $('.spiderbutton').animate({ top: '-=100%'}, 1000); | + | $('.spiderbutton').animate({ top: '-=100%'}, 1000, $('.spiderbutton').animate({ top: '+=100%'}, 1000,)); |
}); | }); | ||
}); | }); |
Revision as of 23:14, 5 September 2014