property

mix-blend-mode — CSS reference

Blends an element with the backdrop in its stacking context. Initial normal; not inherited. Unlike background-blend-mode, the entire rendered element can interact with underlying content. Non-normal blending creates a stacking context; isolation can limit the backdrop.

Formal Syntax & Structure

css syntaxcss
<blend-mode> (Level 1; newer modes exist)

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS visual effects lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}body{background:white} #a{position:relative; margin:20px;width:80px;height:60px;background:rgb(255,0,0);box-sizing:content-box} #a{background:red;mix-blend-mode:multiply}</style><body><div style="position:absolute;top:20px;left:20px;width:80px;height:60px;background:blue"></div><div id="a" aria-hidden="true"></div></body></html>
CSS Reference