<div class="hover-effect">
  <a href="#">
    <img src="https://asalworld.com/wp-content/themes/asal/img/no-image.png" alt="">
  </a>
</div>
* {
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.hover-effect {
  background: #000;
  overflow: hidden;
  transition: 0.5s;
}

.hover-effect a img {
  display: block;
  max-width: 300px;
  transition: 0.5s;
}

.hover-effect a:hover img {
  opacity: 0.7;
  transform: scale(1.2, 1.2);
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.