The linear-gradient
CSS function is used
to create a gradient background that
transitions between two or more colours
in a linear direction.
It is mostly applied as a value to the
background
property.
Let's look at some examples:
As shown in the example above, to create
a linear gradient, we need to specify at
least two different colour values.
In the example above, we created
a linear gradient with four colours.