I'm trying to change the animation-duration
attribute randomly (from 0 to 1) in the below css code.
@keyframes blink {
50% { border-color: #ff0000; }
}
p{
animation-name: blink ;
animation-duration: 0.1s ;
animation-timing-function: step-end ;
animation-iteration-count: infinite ;
animation-direction: alternate ;
}
HTML
<div id="label_div">
<p id="label" class = "blink">Player #</p >
</div>
No Javascript used so far and I am open to use it. Any idea on how to do that? I had a look on this question but I couldn't figure out how to solve my problem.