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() > 10) {pudding.animate({left:'-70px'},200,'swing');}
+
                 if ($(this).scrollTop() > 10) {pudding.animate({'left':'-70px'},200,'swing');}
-
               else {top.animate({left:'-270px'},100,'linear');}
+
               else {top.animate({'left':'-270px'},100,'linear');}
        });
        });
                pudding.click(function () {
                pudding.click(function () {
-
                 $('#pudding').animate({left:'110%'}, 100, 'swing');
+
                 $('#pudding').animate({'left':'110%'}, 100, 'swing');
                return false;
                return false;
        });
        });

Revision as of 10:40, 13 September 2014

count down

Pudding