css - How to persist css3 animation change -


goal keep background red @ end of animation.

using chrome http://codepen.io/juliannorton/pen/rnqlzm

.animation {     -webkit-animation:test-animation 2s 2;     // animation stops after few seconds, state doesn't stay red. }   @-webkit-keyframes test-animation {     0% {          background-color:#fff     }      100% {         background-color:red     } }  @keyframes test-animation {     0% {         background-color:#fff     }      100% {         background-color:red     } } 

animation-fill-mode: forwards;   

is looking for. source: css animation property stays after animating


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -