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

Adobe Reader DC install error 150410

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

ReferenceError: Window does not have a constructor : 325