How can you stop the Zepto animation?

I work with Zepto and Phonegap to create a goal that moves around the page. When he touched, I want the animation to end. I can not find a command that stops the animation. Changing the opacity to 0 and starting a new animation do not work either. I can call him when he touched, I just had trouble figuring out what stopping the animation, if any, means.

+4
source share
1 answer

I added a simple stop () function to my fork on Github . It also calls your callback.

+2
source

Source: https://habr.com/ru/post/1392491/


All Articles