function
circle() — CSS reference
Creates a circle from a radius and center in the reference box. Default center is center and default radius closest-side. Percentage radius uses the normalized diagonal, not simply width.
Formal Syntax & Structure
css syntaxcss
circle(<shape-radius>? [ at <position> ]?)Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS masking and shapes lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}body{background:white} #a{position:relative;margin:20px;width:80px;height:60px;background:red;box-sizing:content-box}#a{clip-path:circle(25px at 40px 30px)}</style><body><div id="a" aria-hidden="true"></div><p>Decorative shape example.</p></body></html>