Let's say I have a simple and linear CSS animation like this
@keyframes move {
0% {top: 0;}
100% {top: -10000px;}
}
Which loops infinitly, and uses 10 steps:
.move {
animation: move 1s steps(10, end) infinite;
animation-play-state: running;
}
And it has a second animation which makes it go for 60 seconds
.sixty_seconds {animation-duration: 60s;}
How can I use javascript to start the animation halfway through its iteration? Is there a way to start a specific animation at a specific percent through its iteration? I need this starting point to be programmable, as it could start at 30% one time, or 77.32% the next.
I'm sure the answer is right under my nose, but I can't seem to find anything that gets it to use these existing animations starting at a specific point.
Thank you very much.