I want to draw a circle with arcs in CSS 3 so that I have 5 points and each point can be a link. The reason I want to do it with arcs is because I want to animate an arc when the user hovers over a point. For example if the use hovers over the second point, the line / arc connecting the first and the second point has a fill animation. Is there a way to do it with CSS or would it be better to use SVGs?
.circle {
position: relative;
width: 530px;
}
.dot {
position: absolute;
width: 10px;
height: 10px;
border-radius: 50%;
background: #ccc;
}
.dot1 {
top: 0;
left: 50%;
transform: translate(-50%, -50%);
}
.dot2 {
top: 34.5%;
left: 2%;
transform: translate(-50%, -50%);
}
.dot3 {
top: 34.5%;
left: 98%;
transform: translate(-50%, -50%);
}
.dot4 {
top: 90%;
left: 21%;
transform: translate(-50%, -50%);
}
.dot5 {
top: 90%;
left: 79%;
transform: translate(-50%, -50%);
}
<div class="circle">
<svg width="530" height="530" viewBox="0 0 530 530" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M265 529C410.803 529 529 410.803 529 265C529 119.197 410.803 1 265 1C119.197 1 1 119.197 1 265C1 410.803 119.197 529 265 529Z" stroke="#DDD7E3" />
<path d="M265 1L13.96 183.4" stroke="#DDD7E3" stroke-miterlimit="10"/>
<path d="M265 1L109.84 478.6" stroke="#DDD7E3" stroke-miterlimit="10"/>
<path d="M265 1L420.16 478.6" stroke="#DDD7E3" stroke-miterlimit="10"/>
<path d="M109.84 478.6L13.96 183.4" stroke="#DDD7E3" stroke-miterlimit="10"/>
<path d="M265 1L516.04 183.4" stroke="#DDD7E3" stroke-miterlimit="10"/>
<path d="M420.16 478.6L516.04 183.4" stroke="#DDD7E3" stroke-miterlimit="10"/>
<path d="M420.16 478.6L13.96 183.4" stroke="#DDD7E3" stroke-miterlimit="10"/>
<path d="M516.04 183.4H13.96" stroke="#DDD7E3" stroke-miterlimit="10"/>
<path d="M516.04 183.4L109.84 478.6" stroke="#DDD7E3" stroke-miterlimit="10"/>
<path d="M420.16 478.6H109.84" stroke="#DDD7E3" stroke-miterlimit="10"/>
</svg>
<div class="dot dot1"></div>
<div class="dot dot2"></div>
<div class="dot dot3"></div>
<div class="dot dot4"></div>
<div class="dot dot5"></div>
</div>
question from:https://stackoverflow.com/questions/66045452/draw-a-circle-with-arcs-in-css-3