4

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.

2
  • 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. Commented 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 insane Commented Apr 24, 2014 at 15:54

1 Answer 1

3

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!

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.