VOOZH about

URL: https://www.geeksforgeeks.org/css/css-conic-gradients/

⇱ CSS Conic Gradients - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

CSS Conic Gradients

Last Updated : 28 Apr, 2025

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:

👁 Screenshot-(46)

Example 2: In this example, we will use a gradient at 45 degrees.

Output:

👁 Screenshot-(47)

Example 3: In this example, we will use repeat the conic gradient by using the repeat-conic-gradient() built-in function.

Output:

👁 Screenshot-(48)

Comment