Template:Team:DukeMenu/CSS
From 2014.igem.org
(Difference between revisions)
Line 78: | Line 78: | ||
console.log($(window).scrollTop()); | console.log($(window).scrollTop()); | ||
- | if ($(window).scrollTop() > | + | if ($(window).scrollTop() > 50) { |
$('#menu').addClass('fixed'); | $('#menu').addClass('fixed'); | ||
} | } | ||
- | if ($(window).scrollTop() < | + | if ($(window).scrollTop() < 51) { |
$('#menu').removeClass('fixed'); | $('#menu').removeClass('fixed'); | ||
} | } |
Revision as of 21:11, 24 July 2014