I am currently working on a lengthy keyframe CSS3 animation and I am hoping to find a way to easily navigate to a specific keyframe, allowing me to display it and then continue the animation from that point. The play/pause/reverse functions are all functioning well.
Here is my progress so far. While I can start, pause, and reverse the animation, seeking to a particular keyframe seems to be unavailable...
CSS
.myStyle{
-webkit-animation-name: myStyle-keyframes;
-webkit-animation-duration: 50000ms;
}
@-webkit-keyframes myStyle-keyframes {
0% {-webkit-transform:translateX(0px) translateY(0px);}
0.1% {-webkit-transform:translateX(1.86px) translateY(-0.62px);}
...
100% {-webkit-transform:translateX(182px) translateY(-123px);}
}
JS
document.getElementById('ball').style.webkitAnimationPlayState='paused';
OR
document.getElementById('ball').style.webkitAnimationPlayState='running';
HTML
<svg id="ball" class="myStyle">[...]</svg>