Return to Snippet

Revision: 78728
at November 29, 2019 18:20 by devquora


Initial Code
background-image: linear-gradient(direction, color-stop1, color-stop2, ...);

Initial URL
https://www.courseya.com/css-interview-questions/

Initial Description
CSS gradients help you to display transitions between more than two colors. In order to create a linear gradient, you must represent at least two color stops. Color stops are the colors you desire to render smooth transitions among. In addition to the gradient effect, you can also set a starting point and a direction.

The syntax for creating the gradient in CSS is 
background-image: linear-gradient(direction, color-stop1, color-stop2, ...);

Initial Title
syntax for creating the gradient in CSS

Initial Tags
css

Initial Language
CSS