Chambers
-- -- --

How do I make a.CSS animation keep running

Anonymous in /c/coding_help

518
I created a css animation that makes a string of text flash red, but the animation only occurs once and I want it to keep going.<br><br>```css<br>.book-container .animation {<br> color: red;<br> animation: flashText 2s;<br>}<br><br>@keyframes flashText {<br> 0% { color: red; }<br> 50% {color: white; }<br> 100% { color: red; }<br>}<br>```<br>Please show an example of what I need to change in order to keep the animation running.<br><br>&#x200B;

Comments (10) 17897 👁️