I'd been trying to render a CSS animation but affected by external dynamic values handled by JavaScript, so now I'm wondering if there's any way to move step by step throw the keyframes of a CSS animations.
-
Interesting question, actually; especially for testing. @dystroy That would test the more basic level, but if someone is applying curves for their keyframes, outside keyframes could have some influence on the resulting values.Katana314– Katana3142014-04-24 15:49:36 +00:00Commented Apr 24, 2014 at 15:49
-
@dystroy That way I'd would forced to code manually each step of the animation. Take for instance a 3d rotation, using keyframes you only need to setup the first and last frame, otherwise would be insanePablo Armentano– Pablo Armentano2014-04-24 15:54:12 +00:00Commented Apr 24, 2014 at 15:54
Add a comment
|
1 Answer
You can force an animation to start partway through by setting a negative animation delay.
(You would need to calculate the appropriate time value for the keyframe you want to display.)
Perhaps if you also set the animation state to paused, the animation would appear at the specified position, but would not move. I haven't tried it though!