Fully transparent header convert to semi-transparent header on scroll down

4 replies · opened May 31, 2017

DDavidMay 31, 2017

Hello,

I'd like to use a fully transparent header that converts to semi-transparent header when scrolling down. Can you provide the CSS changes required?

Thanks you.

SSemicolon WebSTAFFJun 1, 2017

Hello,

This is Definitely Possible. Simply add the data-sticky-class="semi-transparent" Attribute to the #header Tag.

Then add the following CSS Code:

#header.dark.sticky-header.transparent-header #header-wrap:not(.not-dark) { background-color: rgba(0,0,0,0.6); }

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

DDavidJun 2, 2017

Thank you very much!

One last thing for now... how can I make the header stay at the top of the screen on mobile displays?

SSemicolon WebSTAFFJun 2, 2017

Hello,

You can simply add the .sticky-responsive-menu Class to the <body> Tag.

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

DDavidJun 5, 2017

Works like a charm!

Thank again.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard