How to change text color based on background?

Hi :upside_down_face:

Does anyone know how to create this effect in Webflow?

The menu text changes in color based on the background. It’s pretty cool!
It’s a bit hard to describe, but a great example is; https://mouthwash.co/

Would it need custom code or can it be done natively?

Looking forward to hear any thought :star_struck:

Thank you :slight_smile:


Here is my public share link: Webflow - Robbert de Groot

hi @Stefan001 mix-blend-mode:difference can be done via WF GUI Blending in Effects section.

CleanShot 2022-05-28 at 13.37.59

Thank you Stan for your effort to reply! :slight_smile:
Unfortunately, I still did not managed to get this to work. The Difference blending mode makes black disappear :frowning:

Hi @Stefan001 I do not know what research you have done on your own when trying to make it work but this task is simpler than you thing. Here is a short video explaining how it works and how it can be done on your project.

Hope this solve your request

Stan, thank you a lot. It works like a charm. I failed to understand that it should be white at first :wink:

Many thanks!

1 Like