Is there a way to do a knockout text effect using mix-blend-mode with grandparent instead of parent?
- The :grandparent is just an example of what I am trying to do
Here is my html and css:
<span class="screen">lorem</span>
.screen {
color: black;
mix-blend-mode: screen;
background-color: inherit:grandparent;
}
mix-blend-mode:multiply;
is your friend. For getting the grandparent's background color, the best you can do is inherit it.