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: '-= | + | $('.spiderbutton').animate({ top: '-=90%'}, 800, function(){$('.spiderbutton').animate({ top: '+=90%'}, 3000)}); |
- | $('. | + | $('.line').animate({ top: '-=90%'}, 800, function(){$('.line').animate({ top: '+=90%'}, 3000)}); |
$("html, body").animate({ scrollTop: 0 }, 500); | $("html, body").animate({ scrollTop: 0 }, 500); | ||
}); | }); |
Revision as of 20:16, 19 September 2014