JSFiddle - React, Tailwind, and code Playground
HTML
<div><img src="http://www.fillmurray.com/300/200"/></div>
CSS
div {
-webkit-mask-size: 300px 200px;
-webkit-mask-image: -webkit-gradient(linear, center top, center bottom,
color-stop(0.00, rgba(0,0,0,0)),
color-stop(1.00, rgba(0,0,0,1)));
}