Zoom Right

Subtle 1.5x scale-up anchored at the right edge.

Zoom Right demo

Hover or focus the image to see the effect.

HTML

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

CSS

.hover-effect.zoom-right img{
  transform-origin: 100% 50%;
  transition: transform 0.45s ease;
}

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

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