Check out example codes for "html css background linear-gradient". It will help you in understanding the concepts better.
Code Example 1
background: linear-gradient(to left, #333, #333 50%, #eee 100%);
\\code for a basic gradient background
#grad {
background-image: linear-gradient(red, yellow);
}
Code Example 2
background: linear-gradient(#333, #333 50%, #eee 100%);
\\code for a basic gradient background
#grad {
background-image: linear-gradient(red, yellow);
}
Code Example 3
background-image: url("IMAGE_URL"), linear-gradient(#eb01a5, #d13531);
Learn ReactJs, React Native from akashmittal.com