Hover or focus the image to see the effect.
HTML
<div class="hover-effect zoom-in">
<img src="image.jpg" alt="description">
</div>
CSS
.hover-effect.zoom-in img{
transition: transform 0.45s ease;
}
.hover-effect.zoom-in:hover img, .hover-effect.zoom-in:focus-visible img{
transform: scale(1.18);
}
Select the code and copy with Ctrl+C or ⌘C.