My issue involves having an extensive amount of code spread across various components (I'm using vue.js). Although I can't share all the code efficiently, I'll do my best to explain the situation clearly:
I have a div that contains an image. The width of this div is set in viewport width (vw) units to ensure it fits the browser's width without overflowing initially.
However, I want users to be able to zoom in on the image, causing it to overflow horizontally. My challenge lies in finding a way to enable zoom functionality while keeping the width formatting in vw units.
It is crucial for me to maintain the width in vw units because I intend for the picture, which is initially at 100% zoom, to resize and fit the browser's width when resized by the user.
Is there a method to set an image's width based on vw units yet still allow zooming capabilities?