In CSS, Gradients lets you display transition between two or more colors in a very smooth way. There are two types of Gradients in CSS3. 1. Linear Gradients – In CSS, a Linear gradient is a property value which allows directions and stops colors. The direction goes in 5 different directions up, left, right, down and diagonal any one of the value can be used and for stop colors, there should be a minimum of 2 colors to be mentioned. We can even repeat the linear gradient. Ex: p {background-image: linear-gradient (direction, stop-color1, stop-color2, stop-color3)} 2. Radial Gradients – In CSS, a Radial gradient is a property value where the transition of the color will be defined from its center axis. By default, the shape would be an ellipse and the position would be in the center. Similar to linear gradients there should at least be two stop colors specified. Ex: p {background-image: radial-gradient (yellow, green, blue)}