tailbreezy Posted April 10, 2021 Share Posted April 10, 2021 Hello guys, What is the syntax here? This seemed to have worked in the past (I found a link that suggested it can be used in this form); No output in console.log. Cheers See the Pen zYNpEjZ?editors=1111 by dadacoded (@dadacoded) on CodePen 1 Link to comment Share on other sites More sharing options...
tailbreezy Posted April 10, 2021 Author Share Posted April 10, 2021 It is a pity that my questions always occur on weekends. The question is basically how to access the css variable in modifiers so that we can put it in a wrap or something. Will be used in infinite loop scenarios. 1 Link to comment Share on other sites More sharing options...
Carl Posted April 10, 2021 Share Posted April 10, 2021 Thanks for the demo. It clearly demonstrates the issue. I don't have an answer for you other than "maybe css vars are handled differently"... which isn't helpful. 😁. I'm sure @GreenSock will be able to give you a straight answer. Hopefully you can wait until tier 1 support resumes on Monday. Rest assured your issue will be addressed properly. 2 Link to comment Share on other sites More sharing options...
Cassie Posted April 11, 2021 Share Posted April 11, 2021 Following with interest. 👀 Link to comment Share on other sites More sharing options...
tailbreezy Posted April 12, 2021 Author Share Posted April 12, 2021 On 4/10/2021 at 11:14 PM, Carl said: Hopefully you can wait until tier 1 support resumes on Monday. Rest assured your issue will be addressed properly. Hope so. I am wondering why css vars are excluded from being passed to modifiers. What would be a work around if that is the case? Link to comment Share on other sites More sharing options...
Solution GreenSock Posted April 12, 2021 Solution Share Posted April 12, 2021 Sorry about the delay - was traveling. Yes, this was a bug that should be resolved in the next release which you can preview at https://assets.codepen.io/16327/gsap-latest-beta.min.js (you may need to clear your cache). As for a workaround, it should be very easy to use an onUpdate: See the Pen GRrxpZw?editors=0010 by GreenSock (@GreenSock) on CodePen Does that clear things up? 2 2 Link to comment Share on other sites More sharing options...
tailbreezy Posted April 12, 2021 Author Share Posted April 12, 2021 1 hour ago, GreenSock said: Does that clear things up? Yes. That is perfect, I will use the workaround until the official release. Thank you, Jack. 2 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