GSAP durations long problem

i’m trying to use gsap.to on my camera movement and controlls target but the duration doesn’t work at all it seems like it is like 1s default and not changing at all whither it is 1s or 10s it is just the same duration


                gsap.to(this.orbitControlls.target,{
                    x:22.45,
                    y:22,
                    z:-14.887,
                    direction:10,
                    ease:'power4.inOut'
                });
                gsap.to(this.camera.instance.position,{
                    x:24,
                    y:22,
                    z:-14,
                    direction:10,
                    ease:'power4.inOut',
                    onUpdate:()=>{
                        this.orbitControlls.update();
                    }
                });

Direction or duration?

3 Likes

i feel like the dumpest person in the world now, great catch man thank you

3 Likes