<script src="https://cdn.tailwindcss.com"></script>

<a href="#" class="img-box">
  <img src="https://picsum.photos/id/231/400/400" alt="">
</a>
@font-face {
  font-family: "GmarketSansMedium";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff")
    format("woff");
  font-weight: normal;
  font-style: normal;
}

html > body {
  font-family: "GmarketSansMedium";
  text-underline-position: under;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-box {
  position: relative;
  overflow: hidden;
}
.img-box::before {
  content: "";
  position: absolute;
  background-color: rgba(0, 0, 0, 0);
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  transition: background-color 0.3s;
  /*   z-index:1; */
}
.img-box:hover::before {
  background-color: rgba(0, 0, 0, 0.8);
}
.img-box > img {
  position: relative;
  z-index: -1;
  transition: transform 0.3s;
}
.img-box:hover > img {
  transform: scale(1.3);
}
.img-box::after {
  content: "more view";
  position: absolute;
  color: white;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid white;
  border-radius: 15px;
  padding: 0 10px;
  opacity: 0;
  transition: opacity 0.3s;
}
.img-box:hover::after {
  opacity: 1;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.