Tagged: ,

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #670816

    Hi,

    Is there a way to change the colour of the navigation bar while scrolling?
    Because at the moment it seems to have a black tint, so is there a way where i can still have the nav bar on transparent at the top of the page but while scrolling down the nav bar can have a background-color: #f00; ?

    Thanks,
    Above Digital

    #670830

    well you can try it with transition:
    f.e.: Link

    #header_main_alternate {
       background-color: #f50 
    }
    
    .header-scrolled #header_main_alternate {
        background-color: #0f7 ;
        transition: background-color 1s ease-in 0s
    }

    what kind of header have you choosen?
    Logo left/right/center
    navigation left/right/over or under Logo etc.

    #670851

    Hey!

    Please refer to @guenni007’s post above.

    @guenni007
    Thanks! :)

    Best regards,
    Yigit

    #670854

    Hi,
    i have that css code and it hasn’t worked even though it has worked for other sites.
    Here’s the url to the site: http://www.abovedigital.duplicate.com.gridhosted.co.uk.

    #670858

    Hey!

    Can you please try using following code?

    #header {
        background: #f00;
    }
    
    #header.av_header_transparency {
        background: transparent;
    }
    

    Cheers!
    Yigit

    #671463

    Hi Yigit,

    I tired that but didn’t work but i did manage to find a way. But thanks anyways.

    Above Digital

    #671704

    Hi,

    Great, glad you found another solution. Please let us know if you should need any further help on the topic.

    Thanks,
    Rikard

    #672119

    Hi AboveDigital,

    Can you post the solution? Thanks.

    sl

    #672509

    Hi @AboveDigital,

    Would be great if you could share your solution :-)

    Regards,
    Rikard

    #672595

    Hi @Rikard and @slui it is:
    #header ,.header_color .header_bg {
    background: #b1b4b9;
    transition: background 0.3s ease-in;
    }

    #header.av_header_transparency {
    background: transparent;
    transition: background 0.3s ease-in;
    }

    #672991

    Hi,

    Thanks for sharing @AboveDigital, much appreciated :-)

    Regards,
    Rikard

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.