Animating objects on the stage
hi guys
i've used code move object ('box') result of button click:
$(this.lookupselector("box")).css("top", 200);
$(this.lookupselector("box")).css("left", 600);
but want move position rather jump. ideas?
thanks
jquery animate rescue!
// set variables
var leftpos = 600;
var toppos = 200;
var tweentime = 1000;// 1 second
// animate "box" using jquery animate method
sym.$("box").animate({left:leftpos, top:toppos}, tweentime, 'swing');
More discussions in Edge Animate CC
adobe
Comments
Post a Comment