Guest Posted March 30, 2021 Share Posted March 30, 2021 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 Link to comment Share on other sites More sharing options...
Rodrigo Posted March 30, 2021 Share Posted March 30, 2021 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!!! 3 Link to comment Share on other sites More sharing options...
Guest Posted March 31, 2021 Share Posted March 31, 2021 @Rodrigo Hi, yes ,but i want to move both together like this , camera move first then sphere not both Link to comment Share on other sites More sharing options...
mikel Posted March 31, 2021 Share Posted March 31, 2021 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 4 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