Change menu background color on scroll

I want to know if it is possible to also change the top-bar background color when scrolling the page and not only the width. In concrete I have set the top bar color to transparent but i want it to have a color when i scroll down so that it is not confusing.Thank you

Hello there,

This can be achieved with custom css code below. Apply the code from child theme style.css or with this plugin

.is-sticky .top-bar {
    background-color: #cccccc;
    opacity: 0.5;

and of course, change color value and amount of opacity to your liking.

If this wont work for you, please share your page link with us, so we can inspect this on your end.

All the Best!