<section class="circle-chart-container">
<svg class="circle-chart" viewbox="0 0 33.83098862 33.83098862" xmlns="http://www.w3.org/2000/svg">
<circle stroke="#efefef" stroke-width=".5" fill="none" cx="16.91549431" cy="16.91549431" r="15.91549431" />
<circle class="circle-chart-circle" stroke="#64b2d1" stroke-width="3" stroke-dasharray="54,100" fill="none" cx="16.91549431" cy="16.91549431" r="15.91549431" />
</svg>
<span class="circle-chart-percentage circle-chart-one-percentage">
29.1%
</span>
<svg class="circle-chart circle-chart-two" viewbox="0 0 33.83098862 33.83098862" xmlns="http://www.w3.org/2000/svg">
<circle stroke="#efefef" stroke-width="0" fill="none" cx="16.91549431" cy="16.91549431" r="15.91549431" />
<circle class="circle-chart-circle" stroke="#5292ac" stroke-width="3" stroke-dasharray="29,100" fill="none" cx="16.91549431" cy="16.91549431" r="15.91549431" />
</svg>
<span class="circle-chart-percentage circle-chart-two-percentage">
54.9%
</span>
</section>
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
padding: 20px;
}
/* Circle Chart */
.circle-chart-container {
clear: left;
float: left;
position: relative;
max-width: 165px;
width: 100%;
}
.circle-chart {
overflow: visible;
}
.circle-chart-circle {
animation: circle-chart-fill 1.35s reverse;
-webkit-transform: rotate(-90deg);
-moz-transform: rotate(-90deg);
-o-transform: rotate(-90deg);
-ms-transform: rotate(-90deg);
transform: rotate(-90deg);
transform-origin: center;
}
.circle-chart-two {
left: 6%;
max-width: 88%;
position: absolute;
top: 6%;
}
.circle-chart-percentage {
-webkit-animation: fade-in-text 2.2s 0.1s forwards;
-moz-animation: fade-in-text 2.2s 0.1s forwards;
animation: fade-in-text 2.2s 0.1s forwards;
font-size: 22px;
font-weight: 700;
position: absolute;
}
.circle-chart-one-percentage {
color: #5292AC;
left: 65px;
top: 60px;
}
.circle-chart-two-percentage {
color: #64B2D1;
left: 40px;
top: 90px;
}
@keyframes circle-chart-fill {
to { stroke-dasharray: 0 100; }
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.