Hello,
I have a site with a transparent header that transitions to a solid color on scroll. I’m using this code for the effect:
.x-bar.x-bar-absolute{
background-color: hsla(0, 0%, 0%, 0) !important;
transition: background 0.8s ease;
}
.x-bar.x-bar-fixed{
background-color: hsla(235, 26%, 21%, 1) !important;
}
However, I also have my menu item backgrounds set to transparent. When the user scrolls, the header changes color but the background of the menu items remains transparent (as it should based on the settings). But I want the background of the menu items to transition from transparent to white upon scrolling. Also, I would like the menu item text to transition from white to black on the same scroll.
Is there a way to do this?