gganimate icon indicating copy to clipboard operation
gganimate copied to clipboard

Animation progress triggered by user input

Open royfrancis opened this issue 3 years ago • 1 comments

This is probably beyond the scope of this package, but I will leave this here as a thought. Just wondering about the feasibility of controlling animation progress using user input.

Say, there are 3 states. Have the animation start and stop at state 1. There is a user input (press a key etc), the animation proceeds to state 2 and stops. Further user input to progress to state 3 etc.

Kind of like powerpoint. Animation pauses at breakpoints and further progress is triggered by user input. This would be so useful in a teaching context so the whole animation doesn't just play out completely.

royfrancis avatar Dec 08 '21 14:12 royfrancis

I have done this in a powerpoint deck by rendering the animation in pieces and putting each on a different slide.

jonspring avatar Sep 21 '22 19:09 jonspring

Yes, this is the purpose of the split_animation() function

thomasp85 avatar Aug 30 '23 07:08 thomasp85