DEV Community

Cover image for XOR color in stacked div ?
Erhie
Erhie

Posted on

XOR color in stacked div ?

Hello!
I want to display a info box with follows the mouse position.
I have defined the background color transparent.
Sometimes the text is not identifiably because the subjacent element has the same color.
Do you know a method or property that the color change dynamically?
Perhaps that the color is XOR of the color of the subjacent element.

Thank you for tips
Erhie

Top comments (1)

Collapse
 
erhie profile image
Erhie

now I detected the attribute mixBlendMode and it works.
see