Search the Community
Showing results for tags 'touch control'.
Hi All, I'm trying to control a simple move to x using TimelineMax (GSAP) animation with swipe (touch events) using TouchSwipe , what I need to do is to control the animation progress to respond to the swipe. TouchSwipe can set maxTimeThreshold and threshold to fixed values. but I'm not able to figure out how to set these to work together with GSAP. Maybe a better explain to what I want to do is something similar to the first demo on http://www.greensock.com/gsap-js/ but instead of using ui slider to control the playback I want to use the object swipe values (distance and duration) to move the object to x. Hope it makes sense to anyone can walk me through this. thanks in advance