enter image description here

Help solve the puzzle.

How to calculate the displacement of the image so that when you change its scale it seemed that the viewing area of ​​the parent, as it were, gets closer / further to the image?
The image, however, can be moved to any place within the viewing area.

  • What does parent viewport mean? - ampawd
  • Any window that displays information, in this case <div>, in which <img> is located. - Dmitry V

0