This will take a point and expand the colors/gradualy to another color,
in a linear way.
you can change the direction of the linear with 54deg for example.
0 points to the TOP. 90 points to the right. OR with words like "to left right"
"to bottom top" etc.
You can also change point of median change colors with a pourcent
background: linear-gradient(to top, black, 20%, cyan);
argument is after colors
You can also define the breakpoint of a color, just pout the pourcent near the color
linear-gradient(red 40%, yellow 30%, blue 65%);
radial gradient
Expands the colors transition AROUNT a point.
conic gradient
Expands the colors transition following the clockwise.
3 kind of gradient in css
linear
This will take a point and expand the colors/gradualy to another color, in a linear way.
linear-gradient(red 40%, yellow 30%, blue 65%);
radial gradient
Expands the colors transition AROUNT a point.
conic gradient
Expands the colors transition following the clockwise.
French source: https://developer.mozilla.org/fr/docs/Web/CSS/Utilisation_de_d%C3%A9grad%C3%A9s_CSS