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
When i was a little kid, I was really scared of the dark. But then I came to understand, dark just means the absence of photons in the visible wavelength -- 400 to 700 nanometers. Then i thought, well, its really silly to be afraid of a lack of photons. Then i wasn't afraid of the dark anymore after that.
Elon Musk
Random CSS Property

transition

The transition CSS property is a shorthand property for transition-property, transition-duration, transition-timing-function, and transition-delay.
transition css reference