Did you know you can tween a tween? What does that even mean? Well, tweens (and timelines) are JavaScript objects that have their own getter-setter methods that allow you to either get or set values. If you make a tween or timeline the target of a tween you can then tween its progress() and timeScale() just like you would the opacity of a DOM element! The video below explains how this works and also shows you how to tween getter setter methods in your own JavaScript objects.
Tween the progress() and timeScale() of an animation
16039
Get an all-access pass to premium plugins, offers, and more!
Join the ClubWe love seeing what you build with GSAP. Don't forget to let us know when you launch something cool.
- Team GreenSock
Recommended Comments
There are no comments to display.