0
MWE這裏融合圖像:https://codepen.io/anon/pen/ZBVWBx不能與前臺和後臺
我想融合的徽標梯度,使:
- 漸變顏色圖像的唯一字母
- 圖像的背景(當前爲白色)與頁面的背景相匹配
這與the example here類似。
到目前爲止,我已經得到了他們兩個,但separatedly:
.amyspark-logo-1 { /* background */
background: url('https://i.imgur.com/CZUynhW.png');
background-size: 100%;
height: 10rem;
mix-blend-mode: overlay;
}
.amyspark-logo-2 { /* logo + gradient */
background: url('https://i.imgur.com/CZUynhW.png'), linear-gradient(pink, red);
background-size: 100%;
height: 10rem;
background-blend-mode: screen;
}
能不能做到?我嘗試使用透明圖片作爲徽標,但是完全打破了background-blend-mode
。