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.
Can anyone show me how to properly structure my code?
The Time Through Ages
In the Name of Allah, Most Gracious, Most Merciful
1. By the Time,
2. Verily Man is in loss,
3. Except such as have Faith, and do righteous deeds, and (join together) in the mutual enjoining of Truth, and of Patience and Constancy.
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'.