Jump to content
Search Community

Alternating property direction with any array

ElliotGeno
Moderator Tag

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

Posted

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
Posted

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?

Posted

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.

Posted

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

Posted

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?

Posted

I like both.. but I like alt more IMHO

 

+1 for alt

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

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