I am attempting to zoom-in and zoom-out out of a photo when "enlarge-photo" class is clicked. I am unable to get the code below to work properly I believe this is do to the way i have structured the zoom-out part of my code.

Thank you for your help. I apologize I posted the wrong code. Below is the script that is not working properly.

I am using an icon as my trigger with the class '.enlarge-photo' that will both enlarge and return to normal size an image with a class '.image'. When I place the trigger click or hover on the image directly the code works however this is not what i am attempting to do, I would like the icon ".enlarge-photo' to be the trigger 'click'.