tgangemi
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by tgangemi
-
-
[cleared]
-
Imagine I have one long timeline and many of the tweened properties are dynamically calculated. For example; elem1y, elem2y...
tline = new TimelineMax() .add([ TweenMax.to("#elem-1", 1.5, {y: elem1y}), TweenMax.to("#elem-2", 1.5, {y: elem2y}) ]) .addPause() .add([ TweenMax.from("#elem-3", 1.5, {y: elem3y}), TweenMax.from("#elem-4", 1.5, {y: elem4y}) ])
What is the best way to update the timeline if those values are recalculated?
The issue I am currently facing is that simply recreating the timeline leaves lots of elements values changed, thus recreating the timeline as I originally did causes the offsets to be relative to incorrect values.
I've been messing with invalidate(), clear(), reset() but no luck yet.
Thanks!
Recreating Timeline Tweens with Updated Values
in GSAP
Posted
Awesome, thanks!