when tweenMax finished jump to start postion, but how?


hello everybody,

 

i not coder give can.

 

i want element in start position on stage after tween finished.

 

but has jump not tween:

 

 

 

var el = sym.getparentsymbol().getsymbol("jacket06").getsymbolelement();

tweenmax.to(el,4, {css:{y:0, x:-931, y:0, scale:1, opacity: 1}, delay:0, ease:expo.easeout});

 

//and now: jump x:1300px

//but have not idea do. chat lot answere must easy nobody post it.

 

 

special thx answer

hi there, can use tweenmax's oncomplete function this. note latest version of gsap, don't have wrap css stuff in object. can this:

 

 

//when yepnope has loaded execute init();

 

function init (){

     var mysymbol = sym.getparentsymbol().$("jacket06");

     tweenmax.to(mysymbol, 4, {top:0, left:-931,scale:1, opacity:1}, delay:0, ease:expo.easeout,

oncomplete:changepos, oncompleteparams:mysymbol});

 

}

 

function changepos(obj){

          $(obj).css({left:0});

}



More discussions in Edge Animate CC


adobe

Comments

Popular posts from this blog

Remove survey pop up - Joomla! Forum - community, help and support

Thread: poor font display

Error when I try to record application simulation in Adobe Presenter 8