CSS repeating-conic-gradient() Function
Example
Create a repeating conic gradient:
#grad
{
background-image:
repeating-conic-gradient
(
red
10
%
,
yellow
20
%
)
;
}
Try it »
Definition and usage
The repeating-conic-gradient() function is used to create a repeating conic gradient.
Supported version: CSS3
Browser support
The numbers in the table indicate the first browser version that supports the function.
| function | |||||
|---|---|---|---|---|---|
| repeating-conic-gradient() | 69.0 | 79.0 | 83.0 | 12.1 | 56.0 |
CSS Syntax
background-image: repeating-conic-gradient([from angle] [at position,] color degree, color degree, ...);
| Value | Description |
|---|---|
| from angle | Optional. The starting angle. Default is 0deg. |
| at position | Optional. The center position. Default is centered. |
| color degree, ..., color degree | Angular gradient stop. The value contains a color value followed by an optional stop position (an angle between 0 and 360 degrees or a percentage between 0% and 100%). |
More examples
Example
A repeating conic gradient with start and stop colors set::
#grad
{
background-image:
repeating-conic-gradient
(
red
0
deg
30
deg
,
yellow
30
deg
60
deg
,
blue
60
deg
90
deg
)
;
}
Try it »
CSS Functions