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
Post a Comment