Jump to content
GreenSock

ElliotGeno

Alternating property direction with any array

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Here is a demo to make it easier for people to test: http://codepen.io/GreenSock/pen/KpLVyZ

 

Although alternate isn't technically accurate I feel like it does a decent job of what is happening.

 

I'd say pattern and rule are pretty close on my list.

 

The only thing new I have to add is "cycle".

  • Like 1
Link to comment
Share on other sites

+1 for ' rule / alt '

Link to comment
Share on other sites

Hm, cycle ain't bad either.

 

My favorites thus far:

 

alternate, alt, cycle.

 

What does everyone else prefer? Anyone object to adding the feature at all?

Link to comment
Share on other sites

Is stagger the only one that can accept this randomized function?

 

I kind of like alt... easiest to type and it could either stand for alternate or alternative which, to me, seems to be what its doing. Supplying alternative values.

Link to comment
Share on other sites

I like "cycle". It kinda describes it in a more 'visual' sort of way.

Link to comment
Share on other sites

Yes, Elliot, it only works in the "stagger" methods due to the performance and kb cost it would impose to bake it into the entire engine across the board. 

 

Seems like the name finalists are "alt" and "cycle". Thoughts?

Link to comment
Share on other sites

I like both.. but I like alt more IMHO

 

+1 for alt

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×