title: How to add gradient overlay to the <img> element with css?
body: <p>I'm making html markup of this <a href="https://i.stack.imgur.com/SK8B3.png" rel="nofollow noreferrer">page section</a>. As you can see here it is three images. When I set my mouse cursor on one of them the image is shifted and becomes overlayed with linear-gradient. The code of images</p>
  
  <p><strong>Code</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.image_row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }
  
  .image_row img:hover,
  .image_row img:focus {
    transform: translate(-9px, -9px);
    box-shadow: 10px 10px #95e1d3;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="image_row"&gt;
    &lt;img src="image-1" height="250" width="380" /&gt;
    &lt;img src="image-2" height="250" width="380" /&gt;
    &lt;img src="image-3" height="250" width="380" /&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><strong>My problem is that I don't how to make gradient overlay for the image.</strong> I tried the follow code, but it didn't bring any effect:</p>
  
  <pre><code>.image_row img:hover,
  .image_row img:focus{
  transform: translate(-9px, -9px);
  box-shadow: 10px 10px #95e1d3;
  background-image: -moz-linear-gradient( 90deg, rgb(252,227,138) 0%, rgb(243,129,129) 100%);
  background-image: -webkit-linear-gradient( 90deg, rgb(252,227,138) 0%, rgb(243,129,129) 100%);
  background-image: -ms-linear-gradient( 90deg, rgb(252,227,138) 0%, rgb(243,129,129) 100%);
  mix-blend-mode: normal;
  opacity: 0.9;
  }
  </code></pre>