Get the App
SLTechnology News&Howtos  ›  Development  › 

How to realize the effect of flicker Animation with CSS3

Shulou Source: shulou.com Published: 2022-06-01 11:46:53 10月04日 Update

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!

Tags: Animation effects content more articles good practical code articles read knowledge reference help related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Redmi vpn NVidia Shulou Information