Check out example codes for "css linear gradient to bottom right". It will help you in understanding the concepts better.

Code Example 1

#grad {
  background-image: linear-gradient(to bottom right, rgba(255,0,0,0), rgba(255,0,0,1));
}

Code Example 2

background: linear-gradient(to left, #333, #333 50%, #eee 100%);

Code Example 3

.element {
    background: linear-gradient(90deg, pink 50%, cyan 50%);
}

Code Example 4

#grad {
  background-image: linear-gradient(red, yellow);
}

Learn ReactJs, React Native from akashmittal.com