JSFiddle - React, Tailwind, and code Playground
by Clarel Antoine
HTML
<div class="container">
<div class="overlay"></div>
<img src="" alt="">
</div>
CSS
.container {
width: 500px;
height: 300px;
position: relative;
}
.overlay {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: -moz-linear-gradient(left, #02ccfe 0%, #663897 100%), url(http://placekitten.com/g/500/300);
background: -webkit-linear-gradient(left, #02ccfe 0%, #663897 100%), url(http://placekitten.com/g/500/300);
background: linear-gradient(to right, #02ccfe 0%, #663897 100%), url(http://placekitten.com/g/500/300);
background-blend-mode: hard-light;
}