javascript - How to create ad-hoc tweens sequence without recursion in KineticJS? -


is possible create tweens sequence in kineticjs according data saved in array without recursion?

this current solution including recursion:

function tweenfunc( image ) {   setglobalcoordinates();   tween = new kinetic.tween({     node: image,      duration: 1,     x: x,     y: y,     rotation: rot,     onfinish: function(){       if ( counter++ < arr.length )       {         tweenfunc( image );       }     }   });   tween.play(); } 

i have solution creates tweens before first animation , following tweens start final position of predecessor. project includes animation of 4 images in same time many position sequence.


Comments

Popular posts from this blog

php - Magento - Deleted Base url key -

javascript - Tooltipster plugin not firing jquery function when button or any click even occur -

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -