Copied content!

Background Gradient

Type

Type

SELECT TO FILTER

Color

#3B4976

Color

#151E3C

Angle

PREVIEW

CODE

background: linear-gradient(45deg, black, red);

Utilization

The linear-gradient() function sets a linear gradient as the background image. To create a linear gradient you must define at least two color stops. Color stops are the colors you want to render smooth transitions among. You can also set a starting point and a direction (or an angle) along with the gradient effect.

The radial-gradient() function creates an image consisting of a progressive transition between two or more colors that radiate from an origin. Its shape may be a circle or an ellipse. The function’s result is an object of the <gradient> data type, which is a special kind of <image>