Team:NCTU Formosa/source/head
From 2013.igem.org
(Difference between revisions)
Line 103: | Line 103: | ||
$(document).scroll(function() { | $(document).scroll(function() { | ||
- | if ($(document).scrollTop() > | + | if ($(document).scrollTop() > 1000) { |
if (!away) { | if (!away) { | ||
away = true; | away = true; | ||
- | + | if ($(document).scrollTop() > 1311){ | |
+ | $('#toc').stop().animate({'top': '-222px'}, 1500); | ||
+ | } | ||
+ | else { | ||
+ | $('#toc').stop().animate({'top': '-72px'}, 1500); | ||
+ | } | ||
} | } | ||
} else { | } else { |
Revision as of 19:36, 15 September 2013