User:Pudding
From 2014.igem.org
(Difference between revisions)
Line 175: | Line 175: | ||
#pudding{ | #pudding{ | ||
position:fixed; | position:fixed; | ||
+ | z-index:100; | ||
bottom:100px; | bottom:100px; | ||
left:-270px; | left:-270px; | ||
Line 183: | Line 184: | ||
var pudding = $('#pudding'); | var pudding = $('#pudding'); | ||
$(window).scroll(function () { | $(window).scroll(function () { | ||
- | if ($(this).scrollTop() > 30) {pudding.animate({'left':' | + | if ($(this).scrollTop() > 30) {pudding.animate({'left':'-100px'},500,'swing');} |
else {pudding.animate({'left':'-270px'},100,'linear');} | else {pudding.animate({'left':'-270px'},100,'linear');} | ||
}); | }); |
Revision as of 10:52, 13 September 2014
count down