background-blend-mode
The background-blend-mode CSS property sets how an element's background images should blend with each other and with the element's background color.
Blending modes should be defined in the same order as the background-image property. If the blending modes' and background images' list lengths are not equal, it will be repeated and/or truncated until lengths match.
Browser support
| Feature | Desktop | Mobile | ||||
|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Safari | Chrome Android | Safari iOS | |
| 35 | 79 | 30 | 8 | 35 | 8 | |
| Other | ||||||
| The CSS data type describes how colors should appear when elements overlap. It is used in the background-blend-mode and mix-blend-mode properties. | 35 | 79 | 30 | 8 | 59 | 8 |
1+Supported (version) Not supported ※Has note Sub-feature descriptions sourced from MDN Web Docs (CC BY-SA 2.5)
Syntax
CSS
.tinted-image {
background-image: url('photo.jpg');
background-color: #3498db;
background-blend-mode: multiply;
} Live demo
Use cases
-
Using background-blend-mode
The background-blend-mode CSS property sets how an element's background images should blend with each other and with the element's background color.
Cautions
- May not be supported in older browsers.
Accessibility
- Make sure visual changes are conveyed appropriately to assistive technology.