JSFiddle - React, Tailwind, and code Playground

HTML

<div class="item">
  <img src="http://www.123.ru/l_pics/8674736.jpg" alt="">
  <div class="opacity">
    <span>Микроволновка</span>
  </div>
</div>

CSS

.item {
  position: relative;
  width: 200px;
  height: 150px;
  font-family: Arial;
}
.opacity {
  position: absolute;
  width: 200px;
  height: 150px;
  background: -moz-linear-gradient(left,  rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 100%);
  background: -webkit-linear-gradient(left,  rgba(0,0,0,0.65) 0%,rgba(0,0,0,0) 100%);
  background: linear-gradient(to right,  rgba(0,0,0,0.65) 0%,rgba(0,0,0,0) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a6000000', endColorstr='#00000000',GradientType=1 );
  left: 0;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  opacity: 0;
  color: #ffffff;
}
.item:hover .opacity {
  opacity: 1;
}