Jump to content
Search Community

PhilipF5

Premium
  • Posts

    2
  • Joined

  • Last visited

About PhilipF5

PhilipF5's Achievements

  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

1

Reputation

  1. Yep, that is exactly what I was looking for! I had previously tried putting the `yoyo` in the stagger object, but not the `repeat`. Thinking of it "like a vars object that gets passed to the sub-tweens" makes perfect sense with the new API. Thanks!
  2. I've been upgrading a WIP project to GSAP 3 and I'm really digging the simplified API. I did run across an interesting behavior change that I wanted to ask about: In GSAP 2.1, `.staggerTo` seemed to yield an array of Tweens. This meant that setting the `yoyo` property would cause each individual Tween to yoyo, allowing for a very easy "wave"-like effect, in which the first element to animate forward was also the first to animate backward. In GSAP 3, the `stagger` prop just applies to a normal Tween. Setting the `yoyo` property causes the entire stagger to yoyo, so the first element to animate forward is the last element to animate backward. You can actually even look at your own Codepen demos to see what I mean. Just open up the GSAP 2.1 Advanced Stagger demo and the GSAP 3 Advanced Stagger demo and observe the difference in the animation that plays in one versus the other. So my question is, is the GSAP 2.1-style functionality of yoyo-ing the individual "sub-Tweens" of a stagger still available and I just haven't been able to find it? Or has that functionality been removed in favor of just always yoyo-ing the whole stagger as if it's one animation?
×
×
  • Create New...