JSFiddle - React, Tailwind, and code Playground

HTML

<div id="c">
    <div class="grad1"></div>
    <div class="grad2"></div>
</div>

CSS

div#c {
    width: 200px;
    height: 200px;
    position: relative;
}

body {
    background-color: black;
}

.grad1 {
    background-color: white;
    height: 100%;
}
.grad2 {
    background-image: -webkit-linear-gradient(top, red, rgba(255,128,128,0), white);
    width: 100px;
    height: 100%;
    position:absolute;
    top: 0;
    left: 150px;
}