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