linear-gradient

The linear-gradient() function adds a linear gradient to the background of an element. It acts as the value of the background-image or background property.

Syntax



linear-gradient([angle | to position]?, color [, color]*)