CSS

CSS Intro

CSS Intro Quiz

CSS Intro Exercise

CSS Basic

CSS Basic Quiz

CSS Basic Exercise

CSS Advance

CSS Advance Quiz

CSS Advance Exercise

CSS3

CSS3 Quiz

CSS3 Exercise

CSS Properties

CSS Functions

CSS Selectors

CSS radial gradient() Function

CSS radial-gradient() Function

 

 

The radial-gradient() function is used to define a radial gradient as the background image. It is always defined by its center and has at least two color stops.

 

Syntax:-

 

Its syntax is:- background-image: radial-gradient(shape size at position, start-color, ..., last-color);

 

Further Explanation:-

Value Description
shape Defines the shape of the gradient. For example, circle, ellipse.
size Defines the size of the gradient. For example, farthest-side, closest-side.
position Defines the position of the gradient. The center is by default.
start-color, ..., last-color Color stops are the colors that we want to render with smooth transitions. It consists of a color value, with an optional stop position.

Code Explanation

All Tutorials related to CSS Functions

All Sections related to CSS