The project where I worked at use js-image-zoom to zoom in images when the mouse hovers over them.
But the scaling ratio can't be controlled by the scale argument, it only adjusts the width of the len.
const zoomOptions = {
scale: 1.25, // has no effects on the scale
fillContainer: true,
offset: { vertical: 0,horizontal: 10},
zoomPosition:"original",
};
new ImageZoom(document.getElementsByClassName('gallery')[0], zoomOptions);