Basically I have two "tweens" stored as functions and I want to use isActive() to know when to trigger the next animation, this is my first time using GSAP so I feel a bit lost. I read the documentation and checked out this example but I couldnt figure it out.
Here is what I mean (or go to line 8 and 23 in my codepen) :
var toCenter = function(element) {
TweenLite.to( element, 0.5, {opacity:1, yPercent: -50, delay: 0.5});
}
if (!toCenter(element).isActive()) {
// code
}
Thanks for your help.