Anthrask
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by Anthrask
-
-
Hello.
I've been experimenting with some of the more "advanced" features of GSAP a bit, although I already have a fair amount of experience with the essentials.
The motivation for this post is that I've run face-first into something I find utterly perplexing. Basically, the order of the items found in a list passed to the function seem to matter, e.g. [ thing1, thing2, thing3 ] vs. [ thing3, thing1, thing2 ] in TweenMax. I've found a case in which the latter works fine but the former is broken with respect to thing3. The provided codepen should tell the rest of the tale. Click on the circle to animate with the former order; click on the triangle to animate with the latter.
I assume it must be a bug; it's hard for me to imagine that it isn't. But if it isn't, then I'd like a bit of explanation for the rationale behind this decision. Thanks.
See the Pen BqJPaX by Mawkintash (@Mawkintash) on CodePen
List Animating Oddity
in GSAP
Posted
Great explanation. It all makes perfect sense now. Thanks very much.
I'll do the separate tween thing.
GSAP is fantastic.