html, body {
  margin: 0;
  padding: 0;
}

.box {
  position: absolute;
  background-color: #fff;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.box img {
  height: 110%;
  width: 110%;
}
.inner {
  transition: 1s all;
  padding: 0;
  margin: 0;
}
.inner:hover{
  opacity: 1;
  transform: scale(1.2,1.2);
  transition: 1s all;
}

.container {
  position: relative;
  height: 200px;
  width: 300px;
}
.text {
  background-color: #fff;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  height: 100px;
  width: 50%;
  opacity: .8;
  border-radius: 3px;
}


