Team:NCTU Formosa/source/head
From 2013.igem.org
(Difference between revisions)
Line 89: | Line 89: | ||
if (long){ | if (long){ | ||
away = true; | away = true; | ||
- | $('#toc').stop().animate({'top': '-222px'}, | + | $('#toc').stop().animate({'top': '-222px'}, 3500); |
}} | }} | ||
} else { | } else { | ||
away = false; | away = false; | ||
if ($(document).scrollTop() < 509){ | if ($(document).scrollTop() < 509){ | ||
- | $('#toc').stop().animate({'top': '0px'}, | + | $('#toc').stop().animate({'top': '0px'}, 3500).css({ |
position: 'absolute' | position: 'absolute' | ||
});; | });; | ||
} | } | ||
else { | else { | ||
- | $('#toc').stop().animate({'top': '78px'}, | + | $('#toc').stop().animate({'top': '78px'}, 3500).css({ |
position: 'fixed' | position: 'fixed' | ||
});; | });; |
Revision as of 11:54, 17 September 2013