CSSのrepeating-radial-gradient()関数
例
繰り返しの放射状グラデーション:
#grad {
background-image: repeating-radial-gradient(red, yellow 10%, green 15%);
}
定義と使用法
repeat-radial-gradient()関数は、放射状グラデーションを繰り返すために使用されます。
バージョン: | CSS3 |
---|
ブラウザのサポート
表の数字は、この機能を完全にサポートする最初のブラウザバージョンを示しています。
数字の後に-webkit-、-moz-、または-o-が続く場合は、プレフィックスを使用して機能した最初のバージョンを指定します。
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構文
background-image: repeating-radial-gradient(shape size at position, start-color, ..., last-color);
Value | Description |
---|---|
shape | Defines the shape of the gradient. Possible values:
|
size | Defines the size of the gradient. Possible values:
|
position | Defines the position of the gradient. Default is "center" |
start-color, ..., last-color | Color stops are the colors you want to render smooth transitions among. This value consists of a color value, followed by an optional stop position (a percentage between 0% and 100% or a length along the gradient axis). |
関連ページ
CSSチュートリアル:CSSグラデーション