Is there a way to randomly change the animation-duration
attribute in the following CSS code? I want it to range from 0 to 1.
@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>
I haven't used JavaScript yet and am willing to explore that option. Do you have any suggestions on how to achieve this? I checked out this question, but couldn't find a solution for my specific issue.