Point Zoom

Dramatic 5x zoom with an off-centre origin.

Point Zoom demo

Hover or focus the image to see the effect.

HTML

<div class="hover-effect point-zoom">
  <img src="image.jpg" alt="description">
</div>

CSS

.hover-effect.point-zoom img{
  transform-origin: 65% 75%;
  transition: transform 1.2s ease-out;
}

.hover-effect.point-zoom:hover img, .hover-effect.point-zoom:focus-visible img{
  transform: scale(5);
}

Select the code and copy with Ctrl+C or ⌘C.