Share Posted August 3, 2022 Hi, i was wondered if there was a reason that quickTo does not allow 'css' or 'attr' as options in the way that quickSetter does? Possibly performance? Thanks in advance Link to comment Share on other sites More sharing options...
Share Posted August 3, 2022 Yep, that's exactly it, @JamesGrubb. The .quickTo() method is like a direct wire to the inner-guts of a tween where the start/end values are stored AFTER all the parsing has happened. So the "css" and "attr" stuff involves various amounts of extra parsing, validating values, swapping aliased properties, etc. quickTo() skips all that for performance reasons. 1 Link to comment Share on other sites More sharing options...
Author Share Posted August 3, 2022 Thank you!. I was trying to use it to animate css custom properties but went with quickSetter instead. Link to comment Share on other sites More sharing options...
Share Posted August 3, 2022 Ah yes, I've improved that in the next release so you should be able to do that just fine - here's a demo with a beta version of the upcoming release: See the Pen 24cd1b57a6a0d5ccb72a9dfd488e8f4b?editors=0010 by GreenSock (@GreenSock) on CodePen Is that what you're looking for? Link to comment Share on other sites More sharing options...
Author Share Posted August 3, 2022 Yep, thanks exactly. 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