Jump to content
GreenSock

JamesGrubb

quickTo() and quickSetter() functions css and attr options

Recommended Posts

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

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. 

  • Like 1
Link to comment
Share on other sites

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

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.
×