1
I’m trying to develop a dynamic circle using only css and javascript, at first I don’t want to use any library and I can’t use the html canvas.
My idea is to be able to define the size of the circle as follows: the first mouse click will define the center of the circle and the following will define the radius. This is possible to accomplish?!
My code today:
#circulo{
background: #666;
border-radius:100%;
width:150px;
height:150px;
}
<!-- html -->
<div id="circulo"></div>
I’m having trouble creating javascript, can someone give me some example?
Yes, I’ll edit the answer
– Ricardo Ribeiro