Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #793183

    Jade
    Moderator

    Hi there,

    Thanks for writing in.

    Please try this code instead:

    jQuery(document).ready(function($){
    	$('.x-navbar-fixed-top, .x-navbar').css("background-color", "transparent");
    	var rev_height = $("#inici").height(); 
    	$(window).scroll(function(){
    		if ($(this).scrollTop() > rev_height) {
    			$('.x-navbar, .x-navbar-fixed-top').attr('style','background-color: #57AD43 !important');
    		} else {
    			$('.x-navbar, .x-navbar-fixed-top').attr('style','background-color: transparent !important');
    		}
    	});
    });

    Hope this helps.

    #796064

    andreulloveras
    Participant

    Wow! Amazing!

    Thank you!

    #796079

    Paul R
    Moderator

    You’re welcome! 🙂