<div class="box">Default</div>
<div class="box box-color-hint">Color Hint Changed</div>
<div class="box box-color-hint2">Color Hint Changed</div>
.box {
  width: 300px;
  height: 100px;
  display: grid;
  place-items: center;
  color: white;
  margin-bottom: 10px;

  background: linear-gradient(to right, red, blue);
}
.box-color-hint {
  background: linear-gradient(to right, red, 20%, blue);
}
.box-color-hint2 {
  background: linear-gradient(to right, red 0% 20%, blue);
}
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.