Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

CSS repeating-radial-gradient() Function

CSS repeating-radial-gradient() Function

CSS Functions CSS Functions

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:
  • ellipse (default): specifies an elliptical radial gradient
  • circle: specifies a circular radial gradient
  • | | *size* | The specific position of the edge contour. Can be one of the following values: | | *position* | The center position, similar to the value in background-position or transform-origin. Defaults to "center". | | *start-color, ..., last-color* | Used to specify the start and end colors of the gradient; length values or percentages can be used to specify the stop positions, but negative values are not allowed. |

    CSS Tutorial: CSS3 Gradients

    CSS Functions CSS Functions