Jump to content
Search Community

Targeting the current tween in a staggered animation

BrianCross test
Moderator Tag

Recommended Posts

Hey folks, I was playing around with some SVG text animation and was wondering if someone could take a look at my implementation to see if I'm approaching it correctly. I'm specifically wondering about my onComplete callback function within a staggered animation. I'm using this._target[0] to reference the current element to apply a tween after that element's stagger animation is done. I just want to make sure that's correct and that I'm not going about it the wrong way. I inspected this within the callback and that's the only reference I could find to the DOM element in question. I had googled how to do this and found a couple methods. I'm still a GSAP newb so feedback would be appreciated!

 

Thanks very much and I gotta say, I think I'm a GSAP lifer now!

 

Brian

See the Pen d7fa9c71d18b5daa2977591cdb8faf23 by BrianCross (@BrianCross) on CodePen

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...