Celes Posted January 17, 2025 Posted January 17, 2025 Any reason why this animation jumping at the end? See the Pen pvzZbOW by Celes-P (@Celes-P) on CodePen.
Solution GreenSock Posted January 17, 2025 Solution Posted January 17, 2025 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. 2
Celes Posted January 18, 2025 Author Posted January 18, 2025 Thank you. Yeah, it's my bad for putting the transformOrigin into the "animation" part
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