Hi I am trying to animate camera position with GSAP using Below code.
let tween = gsap.to(camera.position, {
duration: 4,
x: 0,
y: 0,
z: 0,
ease: "Power0.easeNone",
onStart: function () {
console.log("animation_started");
},
onUpdate: function () {
console.log("animation_ongoing");
},
onComplete:function(){
console.log("animation_completed");
}
});
tween.play();
All logs are working fine. But the camera doesn’t get any changes.