如果没有 Javascript,我想创建一个简单的循环 CSS 动画类,它可以无限地淡入淡出文本。关于 CSS 动画我知道的不多,所以我还没弄明白,但是我已经做了这么多:
@keyframes flickerAnimation { /* flame pulses */
0% { opacity:1; }
50% { opacity:0; }
100% { opacity:1; }
}
.animate-flicker {
opacity:1;
animation: flickerAnimation 1s infinite;
}