Hi,
I used some Jquery and CSS to change background color of the menu from transparent to white as soon as you scroll down, but this stopped working in the latest update. So now the menu background doesn’t change color anymore when you scroll down, even though the same jquery & css are still used. What’s caused this to stop working?
These are the snippets used for this purpose:
jQuery(function($) {
$(window).scroll(function(){
if($(window).scrollTop() >50) {
$(’.x-navbar’).addClass(“x-navbar-solid”);
}else {
$(’.x-navbar’).removeClass(“x-navbar-solid”);
}
});
});
and CSS:
.x-navbar-wrap {
height: auto !important;
}
.x-navbar {
background-color:transparent;
border:0;
box-shadow:none;
position: fixed;
width:100%;
}
.x-navbar-solid {
background-color:white;
transition: all 0.3s ease 0s;
}