.image-hover {
  position: relative;
  display: inline-block;
  width: 300px;  
  height: 300px;  
  overflow: hidden;
}

.image-hover .img {
  position: absolute;

  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease-in-out;
}

.image-hover .hover {
  opacity: 0;
}

.image-hover:hover .hover {
  opacity: 1;
}

.image-hover:hover .default {
  opacity: 0;
}