![]() |
VOOZH | about |
CSS Conic Gradients is an inbuilt CSS function that is used to create a gradient with a color transition rotated at a center not radiated from the center.
The conic gradient angle starts from 0 degrees – 360 degrees. Conic Gradients include pie charts and color wheels. The result of the conic-gradient() function is an object of the data type, which is a special kind of image.
Syntax:
background-image: conic-gradient([from angle] [at position,] color [degree], color [degree], ...);
By default, the Conic Gradient angle is 0deg and the position is center.
Example 1: In this example, we will see the use of a conic gradient.
Output:
Example 2: In this example, we will use a gradient at 45 degrees.
Output:
Example 3: In this example, we will use repeat the conic gradient by using the repeat-conic-gradient() built-in function.
Output: