background-blend-mode
CSS の background-blend-mode
プロパティは、要素の背景画像を互いに、または要素の背景色と、どのように混合するかを設定します。
The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
このデモのソースファイルは GitHub リポジトリに格納されています。デモプロジェクトに協力したい場合は、 https://github.com/mdn/interactive-examples をクローンしてプルリクエストを送信してください。
混合モードは background-image
プロパティと同じ順番で定義してください。混合モードのリストと背景画像のリストの長さが異なる場合は、長さが合うまで繰り返しや短縮が行われます。
構文
/* 1 値 */
background-blend-mode: normal;
/* 2 値、背景ごとにひとつずつ */
background-blend-mode: darken, luminosity;
/* グローバル値 */
background-blend-mode: initial;
background-blend-mode: inherit;
background-blend-mode: unset;
値
<blend-mode>
- 適用する混合モードです。複数の値をコンマ区切りで置くことができます。
形式文法
<blend-mode>#ここで
<blend-mode> = normal | multiply | screen | overlay | darken | lighten | color-dodge | color-burn | hard-light | soft-light | difference | exclusion | hue | saturation | color | luminosity
例
仕様書
仕様書 | 状態 | 備考 |
---|---|---|
Compositing and Blending Level 1 background-blend-mode の定義 |
勧告候補 | 初回定義 |
初期値 | normal |
---|---|
適用対象 | すべての要素。 SVG では、コンテナー要素、グラフィック要素、グラフィック参照要素に適用されます。。 ::first-letter および::first-line にも適用されます。 |
継承 | なし |
計算値 | 指定通り |
アニメーションの種類 | 離散値 |
ブラウザーの対応
BCD tables only load in the browser