circle()
Baseline
Widely available
This feature is well established and works across many devices and browser versions. Itâs been available across browsers since 2020ë 1ì.
circle() CSS í¨ì ë ë¥ê¸ê¸°ì ìì¹ë¥¼ ì´ì©íì¬ ì ëíì ì ìí©ëë¤. <basic-shape> ë°ì´í° íì
ì¤ íëì
ëë¤.
ìëí´ ë³´ê¸°
clip-path: circle(50px);
clip-path: circle(6rem at right center);
clip-path: circle(10% at 2rem 90%);
clip-path: circle(closest-side at 5rem 6rem);
clip-path: circle(farthest-side);
<section class="default-example" id="default-example">
<div class="transition-all" id="example-element"></div>
</section>
#default-example {
background: #fe9;
}
#example-element {
background: linear-gradient(to bottom right, #f52, #05f);
width: 100%;
height: 100%;
}
구문
shape-outside: circle(50%);
clip-path: circle(6rem at 12rem 8rem);
ê°
<shape-radius>-
<length>ë<percentage>í¹ìclosest-sideìfarthest-sideê°ë ê°ë¥í©ëë¤.closest-side-
ëíì ì¤ì¬ìì ê¸°ì¤ ë°ì¤ì ê°ì¥ ê°ê¹ì´ ë©´ê¹ì§ì 길ì´ë¥¼ ì¬ì©í©ëë¤. ì ëíì ê²½ì°ìë, 모ë ì°¨ììì ê°ì¥ ê°ê¹ì´ ë©´ì ì¬ì©í©ëë¤.
farthest-side-
ëíì ì¤ì¬ìì ê¸°ì¤ ë°ì¤ì ê°ì¥ 먼 ë©´ê¹ì§ì 길ì´ë¥¼ ì¬ì©í©ëë¤. ì ëíì ê²½ì°ìë, 모ë ì°¨ììì ê°ì¥ ë©ë¦¬ ë¨ì´ì ¸ ìë ë©´ì ì¬ì©í©ëë¤.
<position>-
ì ëíì ì¤ì¬ì ì´ëí©ëë¤.
<length>,<percentage>í¹ìleftì ê°ì ííì ê°ë ì¬ì©í ì ììµëë¤.<position>ê°ì´ ìëµëë ê²½ì° ê¸°ë³¸ê°ì ì¤ì¬ì ëë¤.
íì 구문
<circle()> =
circle( <radial-size>? [ at <position> ]? )
<radial-size> =
<radial-extent> |
<length [0,â]> |
<length-percentage [0,â]>{2}
<position> =
<position-one> |
<position-two> |
<position-four>
<radial-extent> =
closest-corner |
closest-side |
farthest-corner |
farthest-side
<length-percentage> =
<length> |
<percentage>
<position-one> =
left |
center |
right |
top |
bottom |
x-start |
x-end |
y-start |
y-end |
block-start |
block-end |
inline-start |
inline-end |
<length-percentage>
<position-two> =
[ left | center | right | x-start | x-end ] && [ top | center | bottom | y-start | y-end ] |
[ left | center | right | x-start | x-end | <length-percentage> ] [ top | center | bottom | y-start | y-end | <length-percentage> ] |
[ block-start | center | block-end ] && [ inline-start | center | inline-end ] |
[ start | center | end ]{2}
<position-four> =
[ [ left | right | x-start | x-end ] <length-percentage> ] && [ [ top | bottom | y-start | y-end ] <length-percentage> ] |
[ [ block-start | block-end ] <length-percentage> ] && [ [ inline-start | inline-end ] <length-percentage> ] |
[ [ start | end ] <length-percentage> ]{2}
ìì
>기본 ì ëí
ìë ìì ììë shape-outside ìì±ì 주ë³ì¼ë¡ í르ë í
ì¤í¸ ìì ëìì§ ííë¡ circle(50%) ê°ì ê°ì§ ì ëíì ì ìí©ëë¤.
ëª ì¸ì
| Specification |
|---|
| CSS Shapes Module Level 1> # funcdef-basic-shape-circle> |
ë¸ë¼ì°ì í¸íì±
ê°ì´ 보기
- ì´ ë°ì´í° íì
ì ì¬ì©íë ìì±ë¤:
clip-path,shape-outside - 기본 ëí ê°ì´ë