So I have a fixed transparent header menu on a website with full width/height images that are black & white photos. I'm wondering if there is a way (either with pure CSS or with some sort of JS implementation) to always have the menu text's color be the opposite of the color of the background at whatever scroll position I'm in. Basically, these photos change from very light to very dark at different places, so as you scroll, the menu is very hard to see for most of the scroll if I make it always white or always black.
Is there a way to implement this?