Jump to content
Search Community

voglervoice

Members
  • Posts

    2
  • Joined

  • Last visited

voglervoice's Achievements

  1. Thanks ! Here is the plugin for other GSAP3 people searching for a solution : codepen
  2. 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 !
×
×
  • Create New...