How to realize the effect of flicker Animation with CSS3
This article is about how CSS3 achieves flicker animation. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
The code is as follows:
.className {
-webkit-animation: twinkling 1s infinite ease-in-out
}
.animated {
-webkit-animation-duration: 1s
Animation-duration: 1s
-webkit-animation-fill-mode: both
Animation-fill-mode: both
}
@-webkit-keyframes twinkling {
0% {
Opacity: 0.5
}
100% {
Opacity: 1
}
}
@ keyframes twinkling {
0% {
Opacity: 0.5
}
100% {
Opacity: 1
}
}
Thank you for reading! This is the end of this article on "how to achieve flickering animation in CSS3". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!