CSS Radial gradients
A radial gradient starts at a central point and radiates outward.
Or In other words -
Creates an image representing a gradient of colors radiating from the center of the gradient.
Now let us see the Syntax
background-image: radial-gradient(shape size at position, start-color, ..., last-color);
Basically it has two values shown in below image -
Now we will see Example -
Customizing the shape and position -
The shape of a radial gradient can be defined as an ellipse (the default), or a circle.
The shape is defined as the name of the shape and a position such as top, right, left, center, or specific percentages or values. The shape is defined as at .
The position can be omitted, in which case it defaults to center.
We can move the circle to the left by specifying a position of 25% shown in below image -
Repeating Gradient -