Jump to content
Search Community

Stagger with repeatRefresh not working as intended

eightarmshq test
Moderator Tag

Go to solution Solved by Rodrigo,

Recommended Posts

I'm trying to make the stagger argument repeat indefinitely (on an individual item level) but also re-evaluate the positions for each element to move to with each stagger. I seem to be able to get one or the other.

 

You can see the randomness I want here: 

See the Pen oNyjRxV?editors=0010 by EightArmsHQ (@EightArmsHQ) on CodePen

 

And the timing I want to use here: 

See the Pen LYrVmKv?editors=0010 by EightArmsHQ (@EightArmsHQ) on CodePen

Link to comment
Share on other sites

  • Solution

Hi,

 

This seems to be doing what you want:

See the Pen QWxyyPE by GreenSock (@GreenSock) on CodePen

 

Basically I created a method to set the card, then animate the card. Once the animation is complete, the set method is called and the card starts over again. Finally just loop through the cards to start each card.

 

It seems to run OK and without any memory leaks.

 

Let us know if you have more questions.

 

Happy Tweening!

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...