On mobile there is a white burger menu in the top right hand corner. When you top it and the menu opens, I was hoping that I could get the burger menu to turn black (so a user knows to close it), but I’m not sure how to do it. Anyone able to help please?
I see the burger menu is an icon (as in an SVG or PNG image), which you obviously cannot control.
There are 2 ways to solve your problems:
In your custom code, add the following line in you “head” tag:
<style>.icon {mix-blend-mode: exclusion;}</style>
White will look black when the background is grey. But it will look something like orange if the background is the blue image.
The longer yet much better way to do this:
Remove the icon inside the burger menu button.
Give the “menu button 2” div a specified width and height (let’s say 50x50 pixels)
Add a wrapper div inside the “menu button 2”, give it 100% width and height, and make the display flex with vertical layout (see screenshot below)
Inside that wrapper div, you will then add 3 same divs, which will be the bars. style them as you please, and space them out with the margins, and give them white background.
Last step is to add an “on click” animation on the menu burger: 1st click (when it opens menu), have it switch the color of those white bars to black, then 2nd click, change back to white.