Change font color depending on background color

Hello :wave:

Do and of you know, how to create custom font-colors in order to different colored backgrounds?

For example you have a hero section. The background of the hero is splitted into 2 colors : white and blue. Then you have a heading on top of that, that overlaps from the blue to the white BAckground. At this point, where the font overlap to the white Background, it’s color should change from white into blue.

I was told to use midnight.js for that. Dont know if thats the right solution for me, cause i dont want the heading-font to be fixed. I just want it to be statically as a "normal " heading.

Thank you in advance.

1 Like

Hey @Luc_4

Can you share your read-only link?

Piter :webflow_heart:

No, because i want this to realise in the future with your help. So my read only link would’nt help that much , i think. :smile:

1 Like

It’s going to be a lot easier if I can show you. not texting here. You can send me the link privately using the message button.