If you want to change the color of a logo on the fly in Webflow there are 2 possibilities:
make the logo as a font
use inline svg with custom css
Both are tricky.
For the burger, if you were using the original Webflow burger icon, that would be easy. but you broke it down into a burgergroup and sub elements, so it’s a bit more tricky.
The only thing that change when you open the menu is the menu item gets a class Open. That’s the only thing we can change. But you declared colors on the sub ojects so we cant do that. And we can’t unse inheritance because if we give a colored bg to the Menu element, il will inherit but also draw a colored bg on it…
The webflow original menu use an icon, it’s considered as a text character so we can declare the text color on the menu and have it inherit by the icon. So it’s easy to change for the Open state
Next, we’ll need to add a new div block to each of the hamburger lines:
Give the div block the following styles:
Position: Absolute,
Left: 0, Right: 0, Top: 0, Bottom: 0,
Background-Color: Whatever you desire,
Opacity: 0%
Screen shot below:
With that set up, we’ll need to add an interaction to the navbar.
Simply click the navbar field, go to the interactions panel and create a new interaction. When selecting the type of trigger, click Navbar. Add ‘Line Background’ to the ‘Affect Different Elements’ field. On Navbar Open, set Opacity to 100% and on Navbar Close, set Opacity to 0%:
And that should be it! Hope I explained it easily but if not I’m willing to answer your questions