When I change blur filter, image trembles a little bit.
当我更改模糊滤镜时,图像会稍微颤抖。
Here is demo at jsfiddle. Please click twice on button at demo
这是jsfiddle的演示。请在演示按钮上单击两次
body {
background-color: #000;
}
body::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0.4;
z-index: -1;
background: url(https://static01.nyt.com/newsgraphics/2017/12/26/2018-1-olympics-climate/assets/images/469466931-1254.jpg) center no-repeat;
background-size: cover;
transition: filter 2s;
}
body.blurred::before {
filter: blur(30px);
}
I am using Chrome 63.0.3239.84 on Mac with non-Retina display.
我在Mac上使用Chrome 63.0.3239.84,非Retina显示屏。
I see many similar question, but no one answer helps me
image moves on hover - chrome opacity issue
CSS transition effect makes image blurry / moves image 1px, in Chrome?
我看到很多类似的问题,但没有一个答案可以帮助我悬停图像移动 - 铬不透明度问题CSS过渡效果会使图像模糊/移动图像1px,在Chrome中?
1 个解决方案
#1
1
I cheated problem using transition by steps, not smoothly
我通过步骤过渡而不是顺利地欺骗了问题
transition-timing-function: steps(10, end);
It is not a solving, it is a cheating and can be applied not everywhere.
I can't explain it, but it works for me.
它不是一个解决方案,它是一种作弊,并不适用于任何地方。我无法解释它,但它对我有用。
https://jsfiddle.net/tuzae6a9/6/
https://jsfiddle.net/tuzae6a9/6/
#1
1
I cheated problem using transition by steps, not smoothly
我通过步骤过渡而不是顺利地欺骗了问题
transition-timing-function: steps(10, end);
It is not a solving, it is a cheating and can be applied not everywhere.
I can't explain it, but it works for me.
它不是一个解决方案,它是一种作弊,并不适用于任何地方。我无法解释它,但它对我有用。
https://jsfiddle.net/tuzae6a9/6/
https://jsfiddle.net/tuzae6a9/6/