// sticky
if (navLinksOffset < currentScroll) {
navLinks.addClass('sticky');
navLinks.attr('fix-point', currentScroll);
}
// Set nav > normal
else if (navLinks.hasClass('sticky') && navLinks.attr('fix-point') > currentScroll) {
navLinks.removeClass('sticky');
}
}
}());
// Bind sticky-nav to scroll event
$(window).on('scroll.stickyNav', function() {
this.stickyNav();
});
});
//]]>