summer
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by summer
-
-
Hello,
First of all, thanks for a great product. I've been using TweenMax for many years with AS3 and have now switched back to Javascript. So glad to see I still have TweenMax with me!
Now to the question:
I'm creating a "scroller" that uses either mouse or touch input to scrub through a set of timelines. This works well, but I would like to create the inertia scroll effect on touch devices as well. I can calculate the ending frame on touch release but when using tweenTo it always goes to the frame within the same duration.
Is it posible to set a duration / speed on tweenTo / tweenFromTo? I checked to docs and couldn't find any info on that.
Also, is it posible to create a main timeline for all my timelines to run in parallel?
//Summer
TimelineMax tweenTo and tweenFromTo duration
in GSAP
Posted
Hello again and thank you for that detailed description. I managed to make it all work quite well thanks to your input. I couldn't work with a master timeline but had to add all timelines to an array and then animate them when scrubbing back and forth.
I don't know if it's a bug, but if a sub timeline is added to a master timeline with a delay, then once I scrub past it's start frame and back (before the sub timeline's first frame) again, position, scale, and rotation is overwritten with a transform translate resetting my initial values. I fixed by adding a "key frame" on frame 0 setting all my start values. I don't know if that makes any sense (and if it's by design?).
In any case it works now and that's great
Thanx again.