How to interrupt an animation back and forth seamlessly?
Hey,
I am trying to create an interruptible animation that can be exited at any point in time while the animation is running. It seems to jump from one point in time to another when you exit midway.
This seems like a bug affecting even very simple configurations. Some of these must already be in many rive examples in the marketplace that has a reverse exit animation that can be cancelled midway.
There have been some discussions in the community around the issue already, but none of them have come up with a solution.
@Robert (Pardon if I am mentioning the wrong Robert) had proposed a solution in this example here:
But it has the same issue, the animation jumps to different points in time instead of seamlessly exiting from where it’s at. You can see that if you increase the duration in the example Robert made, or even just hold for a while and let go at around 1-2 seconds, the animation jumps forward before it goes backward, the transition is not seamless.
@Ben Knight and @Timo Meijs also took a stab at the issue in this post here. But the post is still open with no proposed solutions:
Transition jumps forward before transitioning back when exiting during transition | RiveHere is a Rive file made to demonstrate the issue.
interruptibles.revYou can try clicking the interrupt button while the animation is playing to see the abrupt jumps.