<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
.qrcode {
margin-bottom: 4px;
padding-top: 10px;
}
.qrcode img {
width: 260px;
height: 255px;
padding-top: 20px;
margin-bottom: 10px;
}
.qrcode .blur{
-webkit-backface-visibility: hidden;
animation: toReal 1s;
}
@keyframes toReal {
from {
filter: blur(10px);
}
to {
filter: blur(0px);
}
}
</style>
</head>
<body>
<div class="qrcode">
<img src="./src/assets/background/qrcode.png" class="blur" />
</div>
</body>
</html>
The code is as above. The problem now is that when the blur value of the picture returns to 0, it will flicker (after the end of the animation), that is, the effect is as follows:
:
-webkit-transform-style: preserve-3d;
animation-fill-mode: forwards;
-webkit-backface-visibility: hidden;
-webkit-transform:translate3d(0,0,0);
:chrome v66