body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: sans-serif;
}
.back {
  position: absolute;
  color: #fff;
  top: 10px;
  text-decoration: none;
  font-size: 25px;
  background: crimson;
  padding: 15px 15px;
  border-radius: 15px 20px;
  box-shadow: 2px 2px 8px #000;
}
.back:hover {
  transform: scale(0.9);
  transition: transform 1s;
}

.container {
  width: 30rem;
  height: 30rem;
  position: relative;
  overflow: hidden;
}
.container img {
  width: 100%;
  transition: all 0.5s;
}
.content {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 25%;
  border: solid;
  width: 100%;
  /* center the content */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: #fff;
  transition: all 0.5s;
  background: rgb(23, 23, 23);
  transform: translateY(100%);
}

.container:hover .content {
  transform: translateY(0);
}

.container:hover img {
  transform: translateY(-30%);
}
