Guys I have a question. I have this timeline but the thing is it only runs:
gsap.set(".mask-img-reveal",{transformOrigin: "bottom center", scaleY:0, opacity:"100"});
var tl = gsap.timeline({paused: true, onComplete:function(){tl.kill()}});
tl.to(".mask-img-reveal",{transformOrigin: "bottom center", scaleY:1, duration:1})
.to(".mask-img-reveal",{transformOrigin: "top center", scaleY:0, duration:1});
$( ".people-img" ).hover(
function() {
tl.play();
}
);
I have no idea how I can make it run everytime the hover event happens.