Hello,
I basically want to use the "_short" rotation but it's not giving the expected result (if a tween go from 350 degrees to 10 degrees it will go on a full circle for example).
Does it's only effective on dom/css elements ?
const objectToTween = {rotation: 0};
const target = 340;
gsap.to(objectToTween, {
duration: 0.5,
rotation: `${target}_short`,
onUpdate: () => {
console.log('on update : ', objectToTween.rotation.replace('_short', ''));
},
callbackScope: this,
});
Thanks !