Add background color on scroll
Hello, May I ask how I might add a color background to the menu container once it's scaled and the user is scrolling please?
Thanks
You can define that in .cbp-af-header.cbp-af-header-shrink { /* your styles */ } Note that you'll also have to adjust the transition defined in the first rule of .cbp-af-header
Hope it helps. Cheers
Hi, thanks for your help on background change. I've added it and it's looking good. I will send out a link when our clients site goes live. May I ask if you have considered a feature to fix the following issue please?
When you scroll a long page, the header changes size and sticks to the browser top. If the user refreshes the page the header changes back to the original state. Is there a check I could use so if the user is so many pixels down the page the header stays as it were in the scroll styled header please?
Thanks for your time.
i haven't looked at the codebase, but I'm surprised this is an issue. If it still is, i would suggest opening a fresh issue for it.