Hi,
I have implemented a transparent header that becomes opaque when scrolling. However, when I scroll down, the Rev Slider in the section below goes from Full Screen to maybe 2/3 the width of the screen. It does not happen when I am not using the Transparent/Opaque header codes.
The codes I am using are as follows
CSS:
.x-logobar {
display: none;
}
.masthead {
height:0px;
}
.x-navbar {
background-color: rgba(255,255,255,0.0) !important;
border: 0;
}
.x-logobar{
background-color: rgba(255,255,255,0.0) !important;
}
.home .masthead {
position: absolute;
width: 100%;
}
.x-navbar .desktop .x-nav li>a>span:after {
display: none;
}
body .x-navbar.x-navbar-fixed-top {
background-color: #2D2D2D !important;
transition: ease-in 1s;
}
JAVA:
jQuery(function($){
var $navbar = $(’.x-navbar’);
$(window).scroll(function(event) {
var $current = $(this).scrollTop();
if( $current > 0 ){
$navbar.addClass(‘x-navbar-fixed-top’);
} else {
$navbar.removeClass(‘x-navbar-fixed-top’);
}
});
});