background-blend-mode
Quick Summary for 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.
Code Usage for background-blend-mode
/* One value */ background-blend-mode: normal;  /* Two values, one per background */ background-blend-mode: darken, luminosity;  /* Global values */ background-blend-mode: initial; background-blend-mode: inherit; background-blend-mode: revert; background-blend-mode: unset; 
More Details for background-blend-mode

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.

Syntax

/* One value */ background-blend-mode: normal;  /* Two values, one per background */ background-blend-mode: darken, luminosity;  /* Global values */ background-blend-mode: initial; background-blend-mode: inherit; background-blend-mode: revert; background-blend-mode: unset; 

Values

<blend-mode>

The blending mode to be applied. There can be several values, separated by commas.

Formal definition

Initial valuenormal
Applies toAll elements. In SVG, it applies to container elements, graphics elements, and graphics referencing elements.. It also applies to ::first-letter and ::first-line.
Inheritedno
Computed valueas specified
Animation typediscrete

Formal syntax

<blend-mode>#

where <blend-mode> = normal | multiply | screen | overlay | darken | lighten | color-dodge | color-burn | hard-light | soft-light | difference | exclusion | hue | saturation | color | luminosity

Examples

Basic example

.item {     width: 300px;     height: 300px;     background: url('image1.png'),url('image2.png');     background-blend-mode: screen; } 

Try out different blend modes

Specifications

Specification
Compositing and Blending Level 2 # background-blend-mode

See also

<blend-mode> mix-blend-mode Select your preferred language English (US)DeutschEspañolFrançais日本語Português (do Brasil)Русский中文 (简体) Change language

No Items Found.

Add Comment
Type in a Nick Name here
 
Other Categories in CSS
css
Search CSS
Search CSS by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

You could also follow me on twitter. I have a couple of youtube channels if you want to see some video related content. RuneScape 3, Minecraft and also a coding channel here Web Dev.

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕

❤️👩‍💻🎮

🪦 2000 - 16 Oct 2022 - Boots
Random Quote
“We ought to take outdoor walks in order that the mind may be strengthened and refreshed by the open air and much breathing.".
Seneca
Random CSS Property

mask-border-outset

The mask-border-outset CSS property specifies the distance by which an element's mask border is set out from its border box.
mask-border-outset css reference