Search the Community
Showing results for tags 'interrupt'.
Hi, I am new to the forms but I am a big fan of greensock. I need to interrupt a animation when a user swipes left or right. So the idea is that the animation begins and goes left and right 2x times. But the user should have the possibility to interupt the animation by swiping left or right. When you swipe now during the animation you get 2 animations at the same time. This is not good. It should somehow kill all the animations in that specific function. ( attention() and attention2() ) I use hammer.js for mobile interaction. Sorry for the messy code If you could help me with this I would realy appreciate it. Thanks