img
には現在background-blend-mode
が使用されています。 background-blend-mode
は、同じ要素に複数の背景画像またはの色をブレンドするために使用されます。
mix-blend-mode
は、スタックされた任意の要素にブレンドを適用できます。あなたの場合、一番上の要素(.overlay
)にmix-blend-mode
を使用する必要があります。
#box {
height: 1000px;
background-color: white;
}
#image img {
position: relative;
}
#overlay {
color: green;
position: absolute;
bottom: -300px;
font-size: 1000px;
text-transform: uppercase;
transition: transform 0.9s ease-in-out;
mix-blend-mode: multiply;
}
<div id="box">
<div id="image">
<img src="https://www.epicurrence.com/images/speakers/julie.jpg" />
</div>
<div id="overlay">J</div>
</div>