I would like to do a circular menu, with a variable (unknown) number of elements, that is, my links would be disposed on a circle.
I thought use the SVG to draw the circle, but how to dispose the items on the equal distance on the circle?
I could start with the code:
.container {border: 1px solid red; background: lightblue;}
<figure>
<figcaption>Inline, auto size</figcaption>
<div class="container">
<svg viewBox="0 0 10 10"><use xlink:href="#my-circle"/></svg>
<div>one</div>
<div>two</div>
<div>tree</div>
</div>
</figure>
<svg>
<symbol id="my-circle" >
<g fill="transparent" stroke="darkgoldenrod" stroke-width="0.1">
<circle r="3" transform="translate(5,5)" />
</g>
</symbol>
</svg>
The circle should resize as the container is resized, and items should move.
Is there a way to do it without a lot of JS?