【发布时间】:2021-05-30 13:19:45
【问题描述】:
我知道 Chrome 中的透明背景无法使用混合混合模式进行动画处理,但我的背景颜色设置为 rgba(0,0,0,0.1) 并且效果在 Chrome 中仍然不起作用。
nav {
position: relative;
z-index: 1000;
padding-top: 100px;
mix-blend-mode: difference;
ul {
display: flex;
flex-wrap: wrap;
justify-content: center;
margin: auto;
max-width: 400px;
width: 100%;
li {
margin: 0 30px;
a {
z-index: 1;
position: relative;
color: red;
text-decoration: none;
&:before {
content: '';
z-index: -1;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
height: 0px;
width: 0px;
border-radius: 100px;
background-color: rgba(0,0,0,0.1);
transition: 0.25s ease all;
}
&:hover {
color: #000;
&:before {
height: 100px;
width: 100px;
background-color: red;
}
}
}
}
}
}
【问题讨论】:
-
我希望您查看您的标题:“混合混合模式在 Chrome 上不起作用,但在 Firefox 和 Chrome 中可以正常工作"
标签: html css google-chrome firefox safari