Team:UCLA/Template/Javascript
From 2014.igem.org
(Difference between revisions)
Anuvedverma (Talk | contribs) |
Anuvedverma (Talk | contribs) |
||
Line 6: | Line 6: | ||
$('.spiderbutton, .backtotop').click(function(){ | $('.spiderbutton, .backtotop').click(function(){ | ||
$('.spiderbutton').stop(true,true).animate({ top: '-=75%'}, 800, function(){$('.spiderbutton').stop(true,true).animate({ top: '+=75%'}, 3000)}); | $('.spiderbutton').stop(true,true).animate({ top: '-=75%'}, 800, function(){$('.spiderbutton').stop(true,true).animate({ top: '+=75%'}, 3000)}); | ||
- | $('.spiderline').stop(true,true).animate({ top: '-=75%'}, 800, function(){$('.spiderline').stop(true,true).animate({ top: '+= | + | $('.spiderline').stop(true,true).animate({ top: '-=75%'}, 800, function(){$('.spiderline').stop(true,true).animate({ top: '+=75%'}, 3000)}); |
$("html, body").animate({ scrollTop: 0 }, 1000); | $("html, body").animate({ scrollTop: 0 }, 1000); | ||
}); | }); |
Revision as of 10:58, 17 October 2014