Nie wiem czy dobrze zrozumiałem ?
<div class="main-container">
<div class="zoom-wrapper1">
<div class="zoom-area1 parent">
<img src="https://ironcodestudio.com/wp-content/uploads/2015/03/css-remove-horizontal-scrollbar.jpg" />
</div>
</div>
<div class="zoom-wrapper2">
<div class="zoom-area2 parent">
<img src="https://image.freepik.com/free-photo/vertical-view-eiffel-tower-paris-france_1258-3169.jpg" />
</div>
</div>
</div>
.main-container {
display: flex;
}
.zoom-wrapper1 {
width: 300px;
height: 300px;
border: 5px solid #1C6EA4;
}
.zoom-wrapper2 {
width: 300px;
height: 300px;
border: 5px solid #1C6EA4;
}
.parent {
display: flex;
align-items: center;
justify-content: center;
}
img {
width: 300px;
height: 300px;
}
var panzoom1 = Panzoom(document.querySelector(".zoom-area1"), {
maxScale: 6
});
document.querySelector(".zoom-wrapper1").addEventListener("wheel", panzoom1.zoomWithWheel);
var panzoom2 = Panzoom(document.querySelector(".zoom-area2"), {
maxScale: 6
});
document.querySelector(".zoom-wrapper2").addEventListener("wheel", panzoom2.zoomWithWheel);