<ul>
    <li class="grad-1"></li>
    <li class="grad-2"></li>
  </ul>
HTML {
  height: 100%;
  }
BODY {
  background: white;
  font: 16px/1.4 'Trebuchet MS', Verdana, sans-serif;
  }
UL {
  list-style: none;
  padding: 0;
  text-align: center;
  }
LI {
  display: inline-block;
  height: 10em;
  margin: .2em;
  width: 48.2%;
  border-radius: 10px;
  }

.grad-1 {
  background: linear-gradient( 
      rgba(255,255,255,.2) 40%, rgba(255,255,255, 0) 40%),
    linear-gradient( 
      rgba(255,255,0,.7), rgba(255,255,255,0));
  background-size: 1em 1em, 100%;
  background-color: tomato;
}
.grad-2 {
  background: linear-gradient( 90deg,
      rgba(0,0,0,.1) 30%, rgba(0,0,0,0) 30%),
    linear-gradient( 
      rgba(255,255,0,.8), rgba(255,255,255,0));
  background-size: 2em 2em, 100%;
  background-color: yellowgreen;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.