Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
JIZA

MotionPathPlugin - How to rotate an element on rotations?

Recommended Posts

You could animate another wrapper kind of like this.

 

See the Pen zYEMeNr by GreenSock (@GreenSock) on CodePen

 

  • Like 3
Link to comment
Share on other sites

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

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.
 

 

  • Like 2
Link to comment
Share on other sites

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

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

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

That was already fixed :)

  • Thanks 1
Link to comment
Share on other sites

47 minutes ago, GreenSock said:

That was already fixed :)

really cool!😍

Link to comment
Share on other sites

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.
×