clhomme Posted May 20, 2023 Share Posted May 20, 2023 Hello everyone! My problem probably has a very simple solution, but I can't find it. I have some sort of banner that would start out at like 90deg, and would rotate back to an horizontal position as I scroll. My problem is, it starts out at one position and sort of jumps to another when the animation is triggered (the second position is actually the one I would like the banner to be from the start). Does anyone might know what's causing this issue? Thank you very much! See the Pen poxQYja by Dhandelyon (@Dhandelyon) on CodePen Link to comment Share on other sites More sharing options...
Rodrigo Posted May 20, 2023 Share Posted May 20, 2023 Hi, Use the same transform origin in your set instance: gsap.set(".banner", { rotation: 90 , transformOrigin: "0% 0%", }); Happy Tweening! 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