I am trying to create keyframe animation here and want to end the animation with last frame. but it is not.
Code:
#circleAnime {
width: 710px;
height: 710px;
margin: 2% auto;
background: url('../images/sprite.png') left center no-repeat;
-webkit-animation: play 4s steps(18) forwards; /* Number of frames we have */
animation: play 4s steps(18) forwards;
}
@keyframes play {
from {
background-position: 0;
}
to {
background-position: -12780px; /* Sprite Width */
}
}
@-webkit-keyframes play {
from {
background-position: 0;
}
to {
background-position: -12780px;
}
}
I have followed this link and changed background repeat to no-repeat but that did not help.
Demo:
http://thejobupdates.com/pt/circleanime/
Can anyone help me letting me know how I can stop it at last frame?