Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

mGorchev

Members
  • Posts

    5
  • Joined

  • Last visited

Community Answers

  1. mGorchev's post in Disable animation trigger while animation is active. was marked as the answer   
    Guys, thanks for the hints, great support, i think the problem is that a certain problem can be solved in many possible ways (if that is a problem thought )! I manage to solve it using the TweenMax onStart and onComplete callbacks and setting animationState variable to true or false inside them
    ... if(animationState !== true){ newPosition = leftPosition + slideWidth; tl = TweenMax.to(slide, 0.5, {backgroundPosition: newPosition + "px 0px", ease: Cubic.easeInOut, onStart: function(){ animationState = true; }, onComplete: function(){ animationState = false; } }); .... } ... Thanks again! Marked as solved
×