Thank you for the help on this jQuery matter. I believe my implementation is pretty close to the appropriate use, but to be sure I'll provide a snippet. Also, something to note, this is being used on a Drupal site, I don't think it matters, but I thought I would include it.
My usage:
var elements = {
$elementOne : $('#jQueryOne'),
$elementTwo : $('#jQueryTwo')
};
var gsTweens = {
one: "",
two: ""
};
var tl = new TimelineMax({paused:true});
gsTweens.one = TweenLite.to(elements.$elementOne, time, {css:{top: -50px}});
tl.add(gsTweens.one, "label");
//later on
tl.remove(gsTweens.one);
gsTweens.one = TweenLite.to(elements.$elementOne, time, {css:{top: -100px}});
tl.add(gsTweens.one, "label");
The error I get from the console log is:
Uncaught TypeError: Object [object Object] has no method 'add'
As for removing and the tween and re-adding it to the timeline, this looks like the perfect solution, however I am wondering if I replace a tween that has already been played with a new tween with new values, can I execute this new tween in the timeline by moving backwards through the timeline or will this not work?
I appreciate it.