JSFiddle - React, Tailwind, and code Playground
by Doeke Wartena
HTML
AAAAAAAAAAA<br/>
BBBBBBBBBBB<br/>
CCCCCCCCCCC<br/>
DDDDDDDDDDD
<div class="foo grad">
</div>
CSS
.foo {
top: 10px;
width: 50px;
height: 50px;
position:fixed;
}
.grad {
background: -webkit-linear-gradient(left, rgba(255,0,0,0), rgba(255,0,0,1)); /* For Safari 5.1 to 6.0 */
background: -o-linear-gradient(right, rgba(255,0,0,0), rgba(255,0,0,1)); /* For Opera 11.1 to 12.0 */
background: -moz-linear-gradient(right, rgba(255,0,0,0), rgba(255,0,0,1)); /* For Firefox 3.6 to 15 */
background: linear-gradient(to right, rgba(255,0,0,0), rgba(255,0,0,1)); /* Standard syntax (must be last) */
}