Gsap usage

Can you build off from an animation that has been finished by adding another animation on top of that, or can you add another animation on a finished animation?

I want the blue box to grow bigger, building off from previous animation

Sure. Notice that one of the properties you can pass in is called onComplete which allows you to specify a function to call when the animation is complete (a callback). That function can then do further animations on the object or trigger other animations.

You can also chain together .to() calls to create sequences of animations using a Timeline.

Another option is to also use keyframes.

All three methods are discussed on the following page…


This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.