User:Pudding
From 2014.igem.org
(Difference between revisions)
Line 191: | Line 191: | ||
pudding.hide(); | pudding.hide(); | ||
$(window).scroll(function () { | $(window).scroll(function () { | ||
- | if ($(this).scrollTop() > | + | if ($(this).scrollTop() > 30) {pudding.animate({'left':'0px'},200,'swing');} |
else {pudding.animate({'left':'-270px'},100,'linear');} | else {pudding.animate({'left':'-270px'},100,'linear');} | ||
}); | }); |
Revision as of 10:44, 13 September 2014
count down