the answer for all question about Oxygen Builder plugin and WordPress

Is there a way to make the header menu from transparent to color on scroll?

Is there a way to make the header menu from transparent to color on scroll?

So basically the header menu is transparent and once you scroll down the page it changes to a background color.

How do I do that?



Source

1 Comment
  1. Robert Chan says

    javascript, start your header off at transparent colour then use js detect when you’ve scrolled far enough, then change the colour’s alpha. can either use scroll offset or intersection observer to see how far the scrolling’s gone

    did a simple fiddle here using the scroll offset method
    https://jsfiddle.net/pkboy/ykf7p5zq/

Leave A Reply

Your email address will not be published.

Oxyrealm Docs