Jump to content
Search Community

MotionPath how to convert to GSAP 3

ordinaryJoe
Moderator Tag

Go to solution Solved by Cassie,

Recommended Posts

Posted

Could you give us more details about the 'difficulties'?

I can see that the pen is animating and I don't have any context for what it was meant to look like. What is going wrong? What are you expecting?

 

Thank you!

 

Posted

Hy, sory, my first post, 

 

added the old code as codepen, so you can see the difference, the rotation is going all around now

  • Like 1
  • Solution
Posted

Thanks for that!

I don't have a huge amount of time right now, so this is just a quick look. But I don't think you need motionPath plugin.

If you're looking to remove the old stagger syntax and cycle I think you can just do this -

See the Pen wvNXmoV?editors=0011 by GreenSock (@GreenSock) on CodePen.



I think it could be simplified down more with template literals - I'm also not entirely sure what cycle is doing here, maybe you need wrap? It seems alright like this though.

Is there a specific goal/part of the code you're trying to change in addition to the stagger/cycle syntax?
 

 

  • Like 1
Posted

Thank you,

 

that is it.

  • Like 1

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.
×
×
  • Create New...