resizing picture in center on click


i have logo placed in middle of stage , when click on it, logo should resize x amount of pixels in width , height. (see code below)

sym.$("logo").animate({"width":"120","height":"40"}, 400); 

but want logo resize , still stay centered. feel need add code related center alignment, don't know how.

thanks in advance.

you might want tweak origin calculating in comparison original.

 

'transform-origin': 'top left'



More discussions in Edge Animate CC


adobe

Comments

Popular posts from this blog

ReferenceError: Window does not have a constructor : 325

Error: 100600 Update failed, updates have been disabled by your system policy

Preflight PDF/E Fail; "XMP property neither predefined nor defined in extension schema"