Jump to content
Search Community

ajayns

Members
  • Posts

    2
  • Joined

  • Last visited

ajayns's Achievements

0

Reputation

  1. Hey Zach, thanks a bunch, that answers my question. I was looking for the same - a way of getting index of current element as per stagger order using GSAP APIs. Sorry if that wasn't conveyed clearly. I wasn't aware of the functional method of setting properties, so this helps! Thanks
  2. I've got a bunch of elements I'm doing a stagger animation on. I'd like to set different properties (say scale/position) for each of these elements based on index of stagger. Is there a straightforward way of doing this with a single gsap call? The current solution I'm thinking of involves looping through the elements to get index and setting the properties and delay as per this with individual gsap calls in the loop. Any ideas are appreciated, I didn't make a codepen cause I felt like the description explained it well enough.
×
×
  • Create New...