Event resize from centre.

Joe shared this question 3 years ago
Answered

Hello - I'm trying to resize and element on tap, using Events. The resizing works but it seems to resize from the top left rather from the centre. What I'm trying to create is a CTA that has an icon in it, this icon on tap grows around 3 pixels and then goes back to it's original size on release. I would really appreciate any help.


Thanks,

Comments (1)

photo
1

Hi Joe,


Resizing is done always from the top left. What you could do in this case, is simulate the resizing by adding an 'on tap' event that shows a bigger icon (hidden by default).


Best,


Lidia