In this short tutorial, I will share with you a small code on how to zoom in or out by clicking on an image on your website.
1. First, copy the code below to the meta header.
<script src="https://azaoia.wap.sh/TipsAndTricks/Javascripts/zoom-image.js"></script>
2. Then copy the second code to your footer, be the last item.
<script> simpleImageExpand(); </script>
3. Finally, in the image you want to zoom in, put the class="img" , see the example below.
<img src="YOUR IMG LINK" class="img">
That's all for today, have a great rest.
2 Comments
Good tutorial admin
Thanks @Sadji
Leave a Reply