/**
* @snippet Describe your snippet’s purpose here
*/

jQuery(document).ready(function(e){

/**
* Scroll Nav Sticky
*/
$(window).scroll(function(){
var navbar_height = $(‘nav’).height();
//console.log(navbar_height);
//if ($(this).scrollTop() > 50) {
if ($(this).scrollTop() > navbar_height) {
$(‘nav’).addClass(‘navbar-scrolled’);
} else {
$(‘nav’).removeClass(‘navbar-scrolled’);
}
});

})

0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x