Jump to content
Search Community

Animation Jumping at The End

Celes

Go to solution Solved by GreenSock,

Recommended Posts

  • Solution
Posted

That's primarily because of your transformOrigin - GSAP doesn't animate origin because that's typically the desired behavior. Also, I'd strongly recommend setting all transforms directly through GSAP rather than setting them only via CSS because it delivers the best performance and accuracy (it avoids ambiguities related to how the browser reports transforms with matrices). 

 

You could just set() the transformOrigin initially: 

 

See the Pen ogvMzyL by GreenSock (@GreenSock) on CodePen.

 

You also had an invalid parameter at the end of your gsap.from(..., "<0.2"). There's no such parameter. I assume you were confusing it with the position parameter that's in the timeline.from() method.

  • Like 2
Posted

Thank you. Yeah, it's my bad for putting the transformOrigin into the "animation" part

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.
×
×
  • Create New...