JIZA Posted January 12, 2022 Share Posted January 12, 2022 https://codesandbox.io/s/lingering-bird-wggrl Hello guys! How to make the car turn, for example by 30%, when cornering😅 Link to comment Share on other sites More sharing options...
OSUblake Posted January 12, 2022 Share Posted January 12, 2022 You could animate another wrapper kind of like this. See the Pen zYEMeNr by GreenSock (@GreenSock) on CodePen 3 Link to comment Share on other sites More sharing options...
JIZA Posted January 13, 2022 Author Share Posted January 13, 2022 13 hours ago, OSUblake said: You could animate another wrapper kind of like this. https://codesandbox.io/s/lingering-bird-wggrl There is an element next to the car How to turn it when turning the car? It's hard for some reason for me Link to comment Share on other sites More sharing options...
Cassie Posted January 13, 2022 Share Posted January 13, 2022 Heya! I think you're after timelines and the position parameter. At the moment you're using timelines - but you're not using them to sequence animations at all - you're just using normal tweens and delays. Timeline's unlock a whole new way of thinking about animation. Give this article a look! There's an explainer video too. 2 Link to comment Share on other sites More sharing options...
JIZA Posted January 13, 2022 Author Share Posted January 13, 2022 55 minutes ago, Cassie said: Heya! I think you're after timelines and the position parameter. At the moment you're using timelines - but you're not using them to sequence animations at all - you're just using normal tweens and delays. Timeline's unlock a whole new way of thinking about animation. Give this article a look! There's an explainer video too. due to some bugs in the library, such an implementation option as mine came up. Now you need to somehow rotate the element hehe) Link to comment Share on other sites More sharing options...
GreenSock Posted January 13, 2022 Share Posted January 13, 2022 5 hours ago, JIZA said: due to some bugs in the library, such an implementation option as mine came up. Now you need to somehow rotate the element hehe) I didn't quite follow your comment, @JIZA - are you saying you think there are bugs in GSAP? Or React or a different library? Sorry if I'm missing something obvious. Link to comment Share on other sites More sharing options...
JIZA Posted January 13, 2022 Author Share Posted January 13, 2022 3 minutes ago, GreenSock said: I didn't quite follow your comment, @JIZA - are you saying you think there are bugs in GSAP? Or React or a different library? Sorry if I'm missing something obvious. meant it Link to comment Share on other sites More sharing options...
GreenSock Posted January 13, 2022 Share Posted January 13, 2022 That was already fixed 1 Link to comment Share on other sites More sharing options...
JIZA Posted January 13, 2022 Author Share Posted January 13, 2022 47 minutes ago, GreenSock said: That was already fixed really cool!😍 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