function

repeating-conic-gradient() — CSS reference

Repeats an angular sequence around its center. Angles rather than distances define the period. If the period does not divide a turn evenly, the seam can be noticeable.

Formal Syntax & Structure

css syntaxcss
repeating-conic-gradient(<conic-gradient arguments>)

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS image painting lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}body{background:white} #a{width:100px;height:80px;background-color:blue}#a{background-image:repeating-conic-gradient(red 0deg 45deg, blue 45deg 90deg)}</style><body><div id="a" aria-hidden="true"></div><p>Decorative background sample.</p></body></html>
CSS Reference