First demo is a .js file which is loaded with:
<script src="https://cdnjs.cloudflare.com/ajax/libs/zooming/1.4.2/zooming.js"></script>
https://codepen.io/zuhocuyixu/pen/oqpdWz
The .js adds a nice zooming feature to the image.
Second demo is trying to load the same .js file with head.js. It does not work. https://codepen.io/zuhocuyixu/pen/XEVEwG
Any advice on why this is not working?
I recommend looking through the zooming.js docs
You can initialize the zooming on images like this yourself:
and change your html to this: