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

Upgrade 3.4.8 to 3.5.1 failed "download package failed" - Joomla! Forum - community, help and support

Joomal 3.6.3 update error - PHP temporary folder is not set - Joomla! Forum - community, help and support

Fatal error during instalation - Joomla! Forum - community, help and support