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
Post a Comment