I’m currently using the following code.
Cornerstone > CSS:
.x-navbar {
background-color: #ffffff;
}
@media(min-width: 960px){
body.x-navbar-fixed-top-active .x-navbar-wrap {
height: 0;
}
.home .site .masthead .x-navbar {
background-color: transparent;
transition: all 0.5s linear;
}
.home .site .masthead .x-navbar.x-navbar-solid {
background-color: #000;
background-color: rgba(0,0,0,0.75);
}
}
Cornerstone > Javascript:
jQuery(document).ready(function($) {
var $body = $(‘body’);
var $navbar = $(’.x-navbar’);
if ( $body.hasClass(‘x-navbar-fixed-top-active’) && $navbar.length > 0 ) {
$(window).scroll(function() {
if ( $(this).scrollTop() >= 350 ) {
$navbar.addClass('x-navbar-solid');
} else {
$navbar.removeClass('x-navbar-solid');
}
});
}
});