I’m making my own Rock Paper Scissors game, (clone from Jennifer Dewalt’s site) and I’m stuck with the countdown. I got the animations to work, restarting the animation (which took me a day or two) and now I have to change the text in the middle with a countdown from 3 to 0 and then show the result of the draw.
I got the click event going on nice, but it seems that the countdown starts AFTER the CSS animation is completed. Is there a way for the countdown to start while the animation is running?
I leave you the codepen link: https://codepen.io/ezequiel_/pen/qBWeZva