User:Pudding
From 2014.igem.org
(Difference between revisions)
Line 193: | Line 193: | ||
var pudding = $('#pudding'); | var pudding = $('#pudding'); | ||
$(window).scroll(function () { | $(window).scroll(function () { | ||
- | if ($(this).scrollTop() > | + | if ($(this).scrollTop() > 50) {pudding.animate({'left':'-100px'},500,'swing');} |
else {pudding.animate({'left':'-270px'},100,'linear');} | else {pudding.animate({'left':'-270px'},100,'linear');} | ||
}); | }); | ||
$('#pudding a').click(function () { | $('#pudding a').click(function () { | ||
$('#pudding').animate({'left':'0px'},100,'swing'); | $('#pudding').animate({'left':'0px'},100,'swing'); | ||
- | |||
- | |||
$('#pudding_on').css('display','inline'); | $('#pudding_on').css('display','inline'); | ||
}); | }); |
Revision as of 11:17, 13 September 2014
count down