color gradient in css code example
Example 1: linear-gradient
background: linear-gradient(to left, #333, #333 50%, #eee 100%);
Example 2: css gradient
Here a codePen with cool gradient animations:
https://codepen.io/DevLorenzo/pen/ExgpvJM
Example 3: css gradient
background: linear-gradient(Direction (keyword or degrees), color1 10% (10% width), color2 width (it's not neccessary), ...);