CSS background-blend-mode Property
Example
body {
background-repeat: no-repeat, repeat;
background-image: url("fox.png"), url("bg-paper.jpg");
background-blend-mode: luminosity;
}
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Meaning
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.
Default value: | normal |
Inherited: | No |
Animatable: | No |
Version: | CSS3 |
JavaScript syntax: |
|
Standard Syntax
background-blend-mode: normal|multiply|screen|overlay|darken|lighten|color-dodge|saturation|color|luminosity|inherit|inherit|revert|revert-layer|unset;
Browser Support
The numbers in the table specify the first browser version that fully supports the property.
Status
Property Values
The following table describes the values of this property.
Value | Description |
---|---|
normal | This is default. Sets the blending mode to normal. |
multiply | Sets the blending mode to multiply. |
screen | Sets the blending mode to screen. |
overlay | Sets the blending mode to overlay. |
darken | Sets the blending mode to darken. |
lighten | Sets the blending mode to lighten. |
color-dodge | Sets the blending mode to lighten. |
saturation | Sets the blending mode to saturation. |
color | Sets the blending mode to color. |
luminosity | Sets the blending mode to luminosity. |
initial | Sets this property to its default value. |
inherit | If specified, the associated element takes the computed value of its parent element animation-delay property. |
revert | Reverts the cascaded value of the property from its current value to the value the property |
revert-layer | Rollback styles to the ones specified in previous cascade layers. |
unset | Resets a property to its inherited value if the property naturally inherits from its parent, and to its initial value if not. |
Default CSS Property Values
selectors {
background-blend-mode: normal;
}