CSS repeating-radial-gradient() Function
Example
Repeating radial gradient:
#grad
{
background-image:
repeating-radial-gradient
(
red
,
yellow
10
%
,
green
15
%
)
;
}
Try it »
Definition and usage
The repeating-radial-gradient() function creates a repeating radial gradient "image".
Supported version: CSS3
Browser support
The numbers in the table indicate the first browser version that supports the function.
The number prefixed by "webkit", "moz", or "o" indicates the first version that supports the function.
| function | |||||
|---|---|---|---|---|---|
| repeating-radial-gradient() | 26.0 | ||||
| 10.0 -webkit- | 10.0 | 16.0 | |||
| 3.6 -moz- | 6.1 | ||||
| 5.1 -webkit- | 12.1 | ||||
| 11.1 -o- |
CSS Syntax
background-image: repeating-radial-gradient(shape size at position, start-color, ..., last-color);
| Value | Description |
|---|---|
| shape | Defines the shape of the gradient. Can be:
|
- farthest-corner (default): specifies the radius length from the center to the farthest corner.
- closest-side: specifies the radius length from the center to the closest side.
- closest-corner: specifies the radius length from the center to the closest corner.
- farthest-side: opposite to closest-side, specifies the radius length from the center to the farthest side.
CSS Tutorial: CSS3 Gradients
CSS Functions