Jump to content
Search Community

Recommended Posts

Posted

Hi, have a nice day , i try to move camera and sphere into scrolling , not(camera or sphere), move its on path, How can I get some synchronization between camera and sphere ? thankyou

See the Pen xxgRxgW by leen-alfalah (@leen-alfalah) on CodePen.

Posted

Hi,

 

Have you tried the same approach you're using with the sphere element?

 

gsap.timeline()
  .to(camera.position, { x: 50 })
  .to(camera.position, { x: 150, y: 50 });

You could also plug the MotionPath Plugin to use either an SVG path or a set of coordinates:

 

https://greensock.com/docs/v3/Plugins/MotionPathPlugin

 

Happy Tweening!!!

  • Like 3
Posted

Hey @leenalfalah,

 

please check this tip position-parameter and use ...

 


timeline
.to(camera.position, { z: -20,ease: "none" })
.to(sphere.position, { z: -20,ease: "none" },0)

 

Happy tweening ...

Mikel

  • Like 4

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