

.product_alignment {
 /* width: 300px;
  height: 200px;*/
  border: 1px solid #333;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 0;
  transition: 1s;
}

.product_alignment::before, .product_alignment::after {
  position: absolute;
  background: #fff;
  z-index: -1;
  transition: 1s;
  content: '';
}

.product_alignment::before {
  height: 200px;
  width: 280px;
}

.product_alignment::after {
  width: 300px;
  height: 180px;
}
.product_alignment:hover::before {
  width: 0px;
  background: #fff;
}

.product_alignment:hover::after {
  height: 0px;
  background: #fff;
}

.product_alignment:hover {
  background: #fff;
  opacity: 0.7;
}