Jump to content
Search Community

Hide element in stagger

eugenedrvnk test
Moderator Tag

Recommended Posts

// already found solution (updated codepen), but still don't understand why in previous try, when 'y' was in stagger object, it worked.

 

How can I hide elements while using stagger? All properties are changing, but not opacity / autoalpha. (i tried to search some info in docs, but i think i missed smth)

See the Pen LYEPdjJ by eugenedrvnk (@eugenedrvnk) on CodePen

Edited by eugenedrvnk
Link to comment
Share on other sites

16 minutes ago, ZachSaucier said:

@GreenSock Do you know why y animates inside of the stagger but opacity doesn't?

No no, you shouldn't be feeding your tweening properties (like "y", "opacity", etc.) into the stagger object - that's just for special properties like callbacks or repeat/yoyo. It only worked for "y" because there's an internal indexOf() check to see if the property is in a list of "allowed" ones, and the character "y" is technically in the word "delay". :)

  • Like 1
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...