How to Blend Text Into Images in CSS

You can use the mix-blend-mode property in CSS to blend text into images:

// Use the mix-blend-mode property to blend text
// into images.

.blend { 
  mix-blend-mode: overlay;

  <img src="nature.jpg" />
  <figcaption class="blend">
    “Nature does not hurry, 
    yet everything is accomplished.”
~ Lao Tzu
Copied to clipboard!

You can check the result in the following Codepen:

Blending text into images

The mix-blend-mode property can take up a number of different values:

mix-blend-mode: normal;
mix-blend-mode: multiply;
mix-blend-mode: screen;
mix-blend-mode: overlay;
mix-blend-mode: darken;
mix-blend-mode: lighten;
mix-blend-mode: color-dodge;
mix-blend-mode: color-burn;
mix-blend-mode: hard-light;
mix-blend-mode: soft-light;
mix-blend-mode: difference;
mix-blend-mode: exclusion;
mix-blend-mode: hue;
mix-blend-mode: saturation;
mix-blend-mode: color;
mix-blend-mode: luminosity;
Copied to clipboard!
How to Blend Text Into Images in CSS
If you would like to see more Webtips, follow @flowforfrank


Remove ads
Remove ads

📚 Get access to exclusive content

Want to get access to exclusive content? Support webtips with the price of a coffee to get access to tips, checklists, cheatsheets, and much more. ☕

Get access Support us
Remove ads
Remove ads
Remove ads
🎉 Thank you for subscribing to our newsletter. x This site uses cookies We use cookies to understand visitors and create a better experience for you. By clicking on "Accept", you accept its use. To find out more, please see our privacy policy.