I have a sequence of two GSAP tweens. The second tween is dependent on the first. The first tween moves an element to the right using Power3.easeIn. When this first tween ends, I calculate the instantaneous velocity of the element so I know how fast it was moving right at the end of the tween.
The second tween then needs to move a child of this element to the right using Power2.easeOut. This tween should start at the same velocity that the previous tween ended with. The distance that the child moves during this tween is fixed. How can I calculate the duration of the second tween such that it starts with the desired velocity?
EDIT: Here is a jsbin demonstrating what I'm attempting to do.