Navigation does not stay fixed
Closed this issue · 0 comments
Alexie81 commented
Hello,
My name is Alexie.
I have a suggestion:
Navigation doesn't stand still when I scroll down only when I scroll up again, and this is pretty annoying.
I think you should stay put whether you scroll up or scroll down and just leave:
$(function () {
$(window).scroll(function () {
if ($(this).scrollTop() < 50) {
// hide nav
$("nav").removeClass("vesco-top-nav");
$("#back-to-top").fadeOut();
} else {
// show nav
$("nav").addClass("vesco-top-nav");
$("#back-to-top").fadeIn();
}
});
});
I hope I was helpful, it's just a personal opinion...