zulin Posted May 13, 2020 Share Posted May 13, 2020 Ok, so here are 2 almost identical tweens. Both initially set transformOrigin of bars to bottom-center. The first one uses gsap.from() and it works weird, looks like it's some bug (or perhaps I miss something?) The second one is almost the same, but it uses gsap.to() and transformOrigin seems to work fine. What could be the reason for such behaviour? See the Pen QWjBZPd by zulin (@zulin) on CodePen Link to comment Share on other sites More sharing options...
OSUblake Posted May 13, 2020 Share Posted May 13, 2020 Nah, I think you just need to do... tl.set(items, { transformOrigin: '50% 100%', immediateRender: true }); // OR SET IT BEFORE CREATING YOUR TIMELINE gsap.set(items, { transformOrigin: "50% 100%"}) About immediate render. Also, you're using a deprecated ease syntax. Just lowercase and the type. https://greensock.com/docs/v3/Eases "power3" // same as power3.out "power3.in" "power3.out" "power3.inOut" 4 Link to comment Share on other sites More sharing options...
zulin Posted May 13, 2020 Author Share Posted May 13, 2020 Huh, this is interesting Yeah, I keep phantoming old syntax Thank you! 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