Start a Project

Apply Zoom In and Zoom Out Animation with image in iOS

Apply Zoom In and Zoom Out Animation with image in iOS

Suppose you want to apply the animation on image that will zoom in  and zoom out on tap on the image. You want to show animation tapping the image, You have to use the CGAffineTransform to show the animation on image. If you will set its value 1 then it will pick original size ,If it is less than <1 the image compress according to size , If it is greater than >1 then it will increase the size of the image , If you will set the 2.0 size , then it will show the double size as the original image,If you will set the 0.0 size it will hide the image . You can also set the animation time. Example :-

 

Exit mobile version