gradient background from top to bottom code example
Example 1: css horizontal gradient background color
.foo {
background-image: linear-gradient(red, blue);
}
Example 2: css gradient
Here a codePen with cool gradient animations:
https://codepen.io/DevLorenzo/pen/ExgpvJM