The plug-in name is elevatezoom.
To achieve this effect, you need to prepare two images, one small one and the other large for displaying when the mouse passes. Then, we only need to add the data-zoom-image attribute for the IMG label, and its value is the address of the big image. Finally, select the image in JavaScript and call elevatezoom.
The following is an example (downloaded from GitHubCodeIn this example ):Copy codeThe Code is as follows: <! Doctype HTML>
<HTML>
<Head>
<Meta charset = 'utf-8'/>
<Title> jquery elevatezoom demo </title>
<SCRIPT src = 'jquery-1.8.3.min.js '> </SCRIPT>
<SCRIPT src = 'jquery. elevateZoom-2.3.0.min.js '> </SCRIPT>
</Head>
<Body>
<H1> basic zoom example
<Br/>
See more examples online <a href = "http://www.elevateweb.co.uk/image-zoom/examples"> http://www.elevateweb.co.uk/image-zoom/examples </a>
<SCRIPT>
$ ('# Zoom_01'). elevatezoom ();
</SCRIPT>
</Body>
</Html>
The implementation result is as follows:
I have not studied the specific code, but I know how to use it. I would like to share it here.