I implement frame-by-frame animation on keyframes. It is necessary that when you hover the mouse, the animation loses to the end and stops, and when you drag the mouse, the animation loses in the opposite direction. Moreover, if the mouse was diverted before the animation ended, then it should immediately begin to play in the opposite direction.
Is it all real? If you need to abandon keyframes, then this option will do. What do you advise?