- To create a linear gradient you must define three colors.
- Linear gradient lets you display smooth transitions between the color stops.
- Code for the current gradient is always displayed below.
The following example shows a linear gradient that starts from the left and goes to the right.