Been trying to look for this effect all over but couldn’t find anything unfortunately.
Does anyone know how to change the text color depending its background? For example, I have a fixed text element that is originally white color text - when scrolled over white background the text will clip and become black and vice versa. I’m not looking for a complete text colour change but a clipping.
This is the effect I’m trying to achieve:
(The email us text part on the left hand side. If you scroll to a black background you’ll be able to see the effect)
Great that it works! It’s on my radar to make a template with the same effect but without using blend modes, rather several elements and Interactions, so that you can use all the colors of bg and elements you want, but I haven’t found a really simple and solid way to do it yet.
Hey @vincent,
I have the same goal as @Jeril_Harrison and want to create a text that blends in with the background, also white and black. Unfortunately the solution of adding the Embed element and entering your code with the name of my class doesn’t do the job.
All that happens is that the code I enter
.hero-full-name {mix-blend-mode: difference;}
is displayed as normal text on my website. As if I just added some text. The textfield “hero-full-name” does not change its behavior.
Thanks for the answer @martinmarus.
Found out about it myself a couple of days after my reply and moved on - forgot to put an update in here
Your strategy was the one working for me too