Inside the container should be an image larger than its size. We need a mechanism for moving the image by hovering the mouse within the container in order to see the part of the picture hiding. The container has an overflow: hidden property; (Brought to the right side of the container - we saw the right side of the image). Everything should work without jumps.
here is the markup + styles.
.container { width: 300px; height: 300px; overflow: hidden; } <div class="container"> <img src="http://foto-babochek.ru/images/risunok-babochki_25.jpg" alt=""> </div> It is necessary to smoothly change the coordinates of the image inside the <div class="container"> depending on the location of the mouse pointer on the container. That is, when you hover on the upper left edge, you can see the upper left edge of the picture.