How to make mouse movements smooth between transitions?

Hi there,

I build a zoom in effect inside my slider, to get a closer look at the image inside.
So far it works well,- the first one image makes a zoom in effect (scale in interactions) and after that another image comes up, which is responsible for mouse movements inside the slider.

Problem: When the mouse is in continuous movement,- every works fine, but if I leave the mouse at the same position on the slider,- the image makes an undefined movement.

In the video I tried to show the problem, but you can see it better if you try it yourself.

https://www.useloom.com/share/47f00f5a22b64657aed6c9c30024d5da


The Page is called “save”.
Here is my site Read-Only: LINK
(how to share your site Read-Only link)