CSS repeat-conic-gradient() 함수
예시
반복되는 원뿔 기울기:
#grad {
background-image: repeating-conic-gradient(red 10%,
yellow 20%);
}
아래에서 더 많은 "직접 사용해 보기" 예를 살펴보세요.
정의 및 사용
repeat-conic-gradient() 함수는 원뿔 기울기를 반복하는 데 사용됩니다.
버전: | CSS3 |
---|
브라우저 지원
표의 숫자는 기능을 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.
Function | |||||
---|---|---|---|---|---|
repeating-conic-gradient() | 69.0 | 79.0 | 83.0 | 12.1 | 56.0 |
CSS 구문
background-image: repeating-conic-gradient([from angle] [at position,] color degree, color degree, ...);
Value | Description |
---|---|
from angle | Optional. The entire conic gradient is rotated by this angle. Default value is 0deg |
at position | Optional. Specifies the gradient center of the conic gradient. Default value is center |
color degree, ..., color degree | 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 degree between 0 and 360 or a percent between 0% and 100%). |
더 많은 예
예시
정의된 색상 시작 및 색상 중지가 있는 반복되는 원추형 그라디언트:
#grad {
background-image: repeating-conic-gradient(red 0deg 30deg,
yellow 30deg 60deg, blue 60deg 90deg);
}
관련 페이지
CSS 튜토리얼: CSS 그라디언트