I have a container div with an image inside.
<div id="container">
<img id="image" src ....>
</div>
I also have a function that retrieves the image by its ID and applies zoom using styles like this:
image.style.transform = `scale(${value})`
Everything is working perfectly.
The only issue is that when the image is scaled, it becomes bigger than the container. How can I enable scrolling so that I can zoom in on the image but still be able to scroll up/down or left/right?