DEV Community

Discussion on: Multiline CSS-only typewriter effect

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