示例工程 37-filters-blend-modes
37-filters-blend-modes/demo-02-blend/index.html
点击「运行示例」后,左侧显示源码、右侧显示运行结果;console 输出会实时回传。
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>混合模式</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<h1>混合模式</h1>
<p>圆与渐变背景的混合;文字用 mix-blend-mode 叠加。</p>
<div class="scene">
<span class="c one"></span>
<span class="c two"></span>
<span class="c three"></span>
<p class="type">BLEND</p>
</div>
<div class="bb"></div>
<p class="hint">下面这块是 background-blend-mode: overlay。</p>
</body>
</html>