I'm making a text animation for my friend's website and I'm trying to make a flicker effect, it works, however, it plays once, and I want it to play, then stop, then start again. THe make I've tried only messes it up. Does anyone know a solution?
(my animation code)
.neon span {
animation: flicker 900ms linear 2;
}
.neon .delay1 {
animation-delay: 1.4s;
}
.neon .delay2 {
animation-delay: 2.0s;
}
@keyframes flicker
{
0% { opacity: 0; }
10% { opacity: 1; }
20% { opacity: 0; }
40% { opacity: 1; }
50% { opacity: 0; }
60% { opacity: 1; }
80% { opacity: 0; }
100% { opacity: 1; }
}
In the animation: flicker 900ms linear 2;
line of code I've tried putting infinte
but when I do that it flickers supers fast with no break. I want it to flicker kinda slow then stop, then flicker again.