eugenedrvnk Posted November 30, 2019 Share Posted November 30, 2019 (edited) // 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 November 30, 2019 by eugenedrvnk Link to comment Share on other sites More sharing options...
ZachSaucier Posted November 30, 2019 Share Posted November 30, 2019 @GreenSock Do you know why y animates inside of the stagger but opacity doesn't? Link to comment Share on other sites More sharing options...
eugenedrvnk Posted November 30, 2019 Author Share Posted November 30, 2019 20 minutes ago, ZachSaucier said: @GreenSock Do you know why y animates inside of the stagger but opacity doesn't? How i understand, opacity doesn't have to animate in stagger object, and x - y too. But x - y are working. See the Pen PowYeqz by eugenedrvnk (@eugenedrvnk) on CodePen Link to comment Share on other sites More sharing options...
GreenSock Posted November 30, 2019 Share Posted November 30, 2019 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". 1 Link to comment Share on other sites More sharing options...
ZachSaucier Posted November 30, 2019 Share Posted November 30, 2019 2 hours ago, GreenSock said: 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". Weird. Would not expect that to work, hah. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now