Team:UCLA/Template/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, .backtotop').click(function(){ | $('.spiderbutton, .backtotop').click(function(){ | ||
- | $('.spiderbutton').stop(true,true).animate({ top: '-= | + | $('.spiderbutton').stop(true,true).animate({ top: '-=50%'}, 800, function(){$('.spiderbutton').stop(true,true).animate({ top: '+=50%'}, 3000)}); |
- | $('.spiderline').stop(true,true).animate({ top: '-= | + | $('.spiderline').stop(true,true).animate({ top: '-=50%'}, 800, function(){$('.spiderline').stop(true,true).animate({ top: '+=50%'}, 3000)}); |
- | $("html, body").animate({ scrollTop: 0 }, | + | $("html, body").animate({ scrollTop: 0 }, 500); |
}); | }); | ||
}); | }); |
Revision as of 10:51, 17 October 2014