Jump to content
Search Community

BigApp7e

Members
  • Posts

    1
  • Joined

  • Last visited

BigApp7e's Achievements

  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Hello everyone. I'm AS3 developer and I work with gs libraries before without any problem, but now I start learn js and I'm little confuse about one thing. To be short here is few lines of code: function init(){ tl = new TimelineMax(); tl.append(TweenMax.to(logo,1,{x:200,ease:Linear.easeNone,repeat:-1 ,yoyo:false})); tl.addLabel("start",false); tl.append(TweenMax.to(logo,1,{x:400,ease:Linear.easeNone})); tl.addLabel("end",false); function onClick() { tl.tweenTo("end"); So I expect this logo to make loop animation to the moment when I click button. When I click I expect timelineMax to move one with next animation and logo have to stop on x=400; Actual result: When I click the button this logo make few loops backward and then stop at position x=0; Where I'm wrong? Can you help me with this Regards.
×
×
  • Create New...