H
H
HighHops2020-12-24 01:26:16
css
HighHops, 2020-12-24 01:26:16

How to make such clickable parts of a circle with text?

Site on vue. There are such parts in a circle, and their number can be from 1 to 12.
5fe3c2789fc65745729553.png
How can they be implemented so that with each number they are proportional and fill the entire circle? I tried to make them through the path and for each piece I calculated the degree by which it should turn and applied
transform: rotateZ (xdeg). But then the text on the pieces also transforms and does not stand up in the middle, but flies off somewhere. In addition, making a different path for a different number of pieces is very problematic and time consuming. Also, I tried to do it through circle and mask, but then the parts are not clickable.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RAX7, 2020-12-24
@HighHops

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question