Hi there, i tried t achived Transparent Fixed Navbar with opaque header on scroll. I searched for similar problems in other thread, and found this thread:
I post these on edit global java script
jQuery ( function($) {
$(window).on(‘scroll’, function() {
if ( $(this).scrollTop() > 0 ) {
$(’.x-navbar’).css(‘background’, ‘rgba(0, 0, 0, 0.9)’);
} else {
$(’.x-navbar’).attr(‘style’, ‘’);
}
} );
} );
and
This on edit global css for slow transition
.x-navbar {
-webkit-transition: .5s; /* Safari */
transition: .5s;
}
It worked but it doesn’t worked on mobile display. There are 2 issues on mobile display,
the header is opaque from the top.
the menu on mobile display is transparent (which is not what i looking for.
Can you help me.