【发布时间】:2015-08-09 08:29:05
【问题描述】:
我有两个相互重叠的叠加层,叠加部分使用混合混合模式乘法混合。 在 chrome 中应用了效果,但是具有此属性的 div 会出现奇怪的闪烁。 这种闪烁的原因是什么以及如何解决。 我在 Firefox 上测试过它运行良好,但在 chrome 中没有。!
上图是动画结束后,左侧的 div 开始连续闪烁。
<div class="bottom-banner wr-fl">
<div class="left-overlay overlay"></div>
<div class="right-overlay overlay"></div>
<div class="center heading">
{{entry.bottom_banner.banner_heading}}
</div>
</div>
.bottom-banner .left-overlay
{
mix-blend-mode:multiply;
background:rgba(0,54,108,0.7);
transform:skew(-25deg);
z-index:11;
left:-280px;
}
.bottom-banner .right-overlay
{
width:500px;
transform:skew(-25deg);
right:-600px;
animation:slideinbottom 2s ;
background:red;
mix-blend-mode:multiply;
}
【问题讨论】:
-
这是我的 html 和 css3 代码
-
闪烁通常用
backface-visibility: hidden;w3schools.com/cssref/css3_pr_backface-visibility.asp之类的东西解决