I have a 29 frame animation of a tree growing and I want it to stop on the last frame, (when it's fully grown.) I've been trying to look for a solution to have it stop on the last frame, but nothing seems to be affecting it. I can either get it to loop, or just reset to the first frame.
Can someone please explain to me why this animation keeps just resetting back to the first frame? Thanks so much!
Here is the code I have at the moment:
.tree-right {
-webkit-animation: treeright 2.0s steps(29);
-moz-animation: treeright 2.0s steps(29);
-ms-animation: treeright 2.0s steps(29);
-o-animation: treeright 2.0s steps(29);
animation: treeright 2.0s steps(29);
-webkit-animation-fill-mode:forwards;
-moz-animation-fill-mode:forwards;
animation-fill-mode:forwards;
}
@-webkit-keyframes treeright {
from { background-position: 0px; }
to { background-position: -5310px; }
}
@-moz-keyframes treeright {
from { background-position: 0px; }
to { background-position: -5310px; }
}
@-ms-keyframes treeright {
from { background-position: 0px; }
to { background-position: -5310px; }
}
@-o-keyframes treeright {
from { background-position: 0px; }
to { background-position: -5310px; }
}
@keyframes treeright {
from { background-position: 0px; }
to { background-position: -5310px; }
}