I applied GSAP animation on my model loaded using FBX loader. It is not smooth if I try to animate the camera position to a very far value let’s say from 2 to 6. This is weird because otherwise it works fine. Example:
//this works smoothly and both property are animated simultaneously-----
let tl = gsap.timeline();
tl.add('start')
.to(
camera.position, {
x: -3,
y:4.3,
z: 2,
duration: 0.7
}, 'start'
)
.to(camera.rotation, {
y: 4.1,
duration: 0.7
}, 'start'
)
//But this applies animation in 2 parts and the 2nd one after a little pause(not simultaneous):
let tl = gsap.timeline();
tl.add('start')
.to(
camera.position, {
x: -6,
y:6.3,
z: 3,
duration: 0.7
}, 'start'
)
.to(camera.rotation, {
y: 5,
duration: 0.7
}, 'start'
)