Jump to content
GreenSock

Jacks

gasp.quickTo breaks when using rotateX

Moderator Tag
Go to solution Solved by GreenSock,

Recommended Posts

I can not get quickTo to work rotateX. It is working fine with the regular to

 

The CodePen shows an example. I am trying to use this in a SolidJS project, and am actually getting an Maximum call stack size exceeded error. I don't get that in the CodePen, but it still does not work. I didn't see anything in the documentation about quickTo only working with x and y, so I am assuming this should be possible.


The error incase anyone is interested. image.thumb.png.fbed19cb56142b00e0ffb373d2e7e924.png

 

See the Pen wvxogRX by jack_s (@jack_s) on CodePen

Link to comment
Share on other sites

  • Solution

You need to use rotationX, not rotateX :)

 

Name aliases like that don't work in quickTo() (it's part of the optimization, as indicated in the docs). 

 

Does that clear things up? 

Link to comment
Share on other sites

Wow, that was simple, 2x performance! Thank you.

  • Like 1
Link to comment
Share on other sites

Great! Love hearing that. Enjoy!

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