DEV Community

Discussion on: Multiline CSS-only typewriter effect

Collapse
 
afif profile image
Temani Afif

This is becoming more a duel than a war! I have to think about another entry

By the way, I think playing with some masks can get rid of the background coloration you need.

Collapse
 
alvaromontoro profile image
Alvaro Montoro

That would be cool. I wonder if setting the background to white and then picking a blend mode of dark will always pick the background by default... but I'm assume it won't hide the text either :S

Collapse
 
afif profile image
Temani Afif

yes, if you apply mix-blend-mode: darken; to only the .typewriter element it will work but your text need to be "darker" than the background color of your section or body. It's perfect if your text is always black