Team:UCLA/anuved verma ucla2014 workspace/Javascript
From 2014.igem.org
(Difference between revisions)
Anuvedverma (Talk | contribs) |
Anuvedverma (Talk | contribs) |
||
Line 5: | Line 5: | ||
jQuery(document).ready(function($){ | jQuery(document).ready(function($){ | ||
$('.spiderbutton').click(function(){ | $('.spiderbutton').click(function(){ | ||
- | |||
$('.spiderbutton').animate({ top: '-=70%'}, 800, function(){$('.spiderbutton').animate({ top: '+=70%'}, 3000)}); | $('.spiderbutton').animate({ top: '-=70%'}, 800, function(){$('.spiderbutton').animate({ top: '+=70%'}, 3000)}); | ||
$('.spiderline').animate({ top: '-=70%'}, 800, function(){$('.spiderline').animate({ top: '+=70%'}, 3000)}); | $('.spiderline').animate({ top: '-=70%'}, 800, function(){$('.spiderline').animate({ top: '+=70%'}, 3000)}); | ||
+ | $("html, body").animate({ scrollTop: 0 }, 500); | ||
}); | }); | ||
}); | }); |
Revision as of 00:11, 19 September 2014