Hello. In the beginning on my code I declare a new TimelineMax object, and I add a new tween that has a delay using the to() method (this is a simplified version, i do add more tweens to this Timeline). The delay is defined by a previously declared variable (var).
var tl = new TimelineMax()
.to("#answerTextarea", 1, {
someProp: "value",
delay: delayVariable
})
After this, delayVariable changes. When i replay the tl though, the delay is not equal to the new value. I tried invalidating tl using the invalidate() method, but this doesn't invalidate the delay.
How should I proceed so that the delay is updated everytime I restart the tl?