I am trying to create a circle sector. This sector should be built in CSS by with a starting and an end positions measured in degrees.
For example: startPosition: 155deg; endPosition: 245deg;
I tried to find answer to this problem here: How to draw a circle sector in CSS?
But none of the answers really helped me.
This is my code so far (http://jsfiddle.net/idoglik6/1mvgnsrc/):
.pivot-control {
float: left;
position: relative;
}
.pivot-control .pivot-container {
border-radius: 50%;
border-style: solid;
border-width: 3px;
border-color: #2e3d5d;
box-sizing: border-box;
background-color: #bcd0e7;
width: 76px;
height: 76px;
}
.pivot-control .pivot-container .pivot-circle {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.pivot-control .pivot-container .pivot-circle .pivot-hand {
position: relative;
background: #228ad5;
height: 38px;
left: 49%;
top: 0;
transform-origin: 50% 100%;
width: 2px;
box-shadow: 0 -2px 0 2px #fafafa;
}
<div class="pivot-control">
<div class="pivot-container">
<div class="pivot-circle">
<div class="pivot-hand" >
</div>
</div>
</div>
</div>
Thanks!