tl.to(photography, 3, {width:photoWidthTo, height:photoHeightTo})
.to(lightGreenBox, 0.5, {width:lightGreenBoxWidth}, "-=1.5")
.to(copy1, 0.5, {opacity:1})
.to(darkGreenBox, 0.5, {width:darkGreenBoxWidth})
.to(copy2, 0.5, {opacity:1})
.to(cta, 1, {opacity:1});
hello, I'm new to JavaScript TimelineLite and I can't seem to figure out how to do this simple thing..
I want to have photography animate, and then have lightGreenBox overlap it's animation by -1.5 seconds, but then I want all of the animations after it to sequence one after another after lightGreenBox finishes.
Right now lightGreenBox is being offset, but none of the other animations are offsetting themselves accordingly..
It's kind of hard to explain.. I basically just want the rest of the sequence to continue after lightGreenBox is finished. I want the whole sequence to overlap photography's tween.. not just lightGreenBox.
Like this:
tl.to(photography, 3, {width:photoWidthTo, height:photoHeightTo})
.to(lightGreenBox, 0.5, {width:lightGreenBoxWidth}, "-=1.5")
.to(copy1, 0.5, {opacity:1}, "-=1.0")
.to(darkGreenBox, 0.5, {width:darkGreenBoxWidth}, "-=0.5")
.to(copy2, 0.5, {opacity:1})
.to(cta, 1, {opacity:1});
Does that make sense? can anyone offer the solution?