This example is great for demonstrating product images in detail by enlarging the specific area or displaying an enlarged image in a separate area. It does not use two images to produce the effect as many libs do.
I have separated the functions in such a way that you can easily choose the one that best suits your project. See External JS file to Magnify and for Zoom function, see Mainform script.
I do not see any use of using this feature in mobile as there is already a pinch movement to enlarge images on the platform. Either way, it works the same.
Examples posted here are free of charge to uniGUI Subscribers only. Don't ask me to send to you. That's uniGUI forum's rule.
Visit http://www.unigui.com.br or http://unigui.express (soon to go live) to purchase our material.
Credits: Example from w3schools.com.
Telegram Group
https://t.me/uniguiExpress
Project available at https://unigui.express