F
F
fr0d0_742020-10-30 14:16:21
css
fr0d0_74, 2020-10-30 14:16:21

How to change font color when overlaying letters on svg shape?

Good people help with good advice, I googled the problem as usual but didn’t find answers, the fact is that I can’t implement the idea .. we have a page block on which the svg figure is located on top of it there is a block with employees, the block changes the position of the blocks when the window is resized in relation to the svg figure, so there is a problem that the font color of the team-corporation>team-coop>p block, when it hits the red svg figure, changes to white, and when it does not hit the figure, it has red color.

Code on codepad

Google got to the option using the CSS property mix-blend-mode, changed the block structure because the desired block in this structure cannot apply this property due to far inheritance, but that’s not the point ... when applying the property, it’s impossible to change to specific colors, which is not suitable for me ... Maybe someone faced such a problem? perhaps there is a solution using js

5f9bf5ea6aed1455666928.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
RAX7, 2020-10-30
@fr0d0_74

A
Ankhena, 2020-10-30
@Ankhena

Either mix-blend-mode
or with duplicate content (in my markup, but you can also use pseudo and data)

F
fr0d0_74, 2020-11-04
@fr0d0_74

RAX7 , Ankhena you are the coolest in the world! God bless you, I answer!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question