I have recently found a code that changes my background color of my website to a new color every 16 seconds. The problem is my Nav Menu stays the same initial color and doesn’t change with the background. Can anyone provide me with a code that links my header/navmenu color to the background color so that they change together??? I can’t find anything on google unfortunately and I know this will require a custom code.
Also on this custom code can anyone also provide me with a code that fades the colors into each other smoothly? Right now when the colors change it just happens instantaenously. I would like them to fade into each other smoothly. Any help would be awesome! Here is the custom code that is changing my background color:
Firstly thank you very much for responding and trying to help me out with this. Unfortunately the code you wrote didn’t work for me. Neither for the background transition or for making the header stay the same colors as the background. If you have any ideas I would be really grateful!!!
Thank you for this Stan! Would you by any chance know a simple code that will make my header background color always match the background color as it changes? for whatever reason it just stays white. currently I just have it set to transparent. I think the main block is called c-nav-main or w-nav.
You’re awesome!!! So the transitions are working perfectly! thank you so much! for the nav menu, you nailed the code but what you had change was the color of the background when the menu opens. Im looking to make the nav menu block when its closed match the color of the background. I think the main block is called c-nav-main or w-nav. I hope I’m making sense. haha.
I will include a photo with the piece of the nav bar I’m talking about selected.
Transparent background is probably the way to go. If you’re setting it using code you may have an overlap with the lottie animation. You can try this and play around with this code:
Firstly thank you very much for responding and trying to help me out with this. Unfortunately the code you wrote didn’t work for me. Neither for the background transition or for making the header stay the same colors as the background. If you have any ideas I would be really grateful!!!