Jump to content
Search Community

Jack_a

Members
  • Posts

    1
  • Joined

  • Last visited

Jack_a's Achievements

0

Reputation

  1. I am using TweenMax to move a div to a certain x position, with the x position getting updated at certain points. I want to achieve an infinite animation in a specific direction with a constant speed, preferably without using repeat because that causes other issues for me. If I use duration, the animation speed changes when the distance changes, so I tried accounting for it with timeScale(). I was able to regulate the speed like this but eventually tween.time() becomes equal to tween.duration() and the animation stops. I tried updating the duration mid tween every time I updated my x value, but the result was weird. Is there way to achieve what I want? EDIT: this solution wouldn't work anyways after some testing. Thank you for considering my issue anyways.
×
×
  • Create New...