Jump to content
Search Community

Planet Orbits (Linked animations)

jp_uk81 test
Moderator Tag

Recommended Posts

Hey @jp_uk81,

 

Maybe this pen helps ...

 

function mapToPath() {
  var path = MorphSVGPlugin.pathDataToBezier(orbit, {align:planet});
  //create a tween of the planet along that path and jump to the progress that the timeline is at.
  TweenLite.to(planet, time, {bezier:{values:path, type:"cubic"}}).progress(action.progress());
}

See the Pen gyYWEe by mikeK (@mikeK) on CodePen

 

Happy tweening ...

Mikel

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