I'm trying to achieve something like this WITHOUT using the SVG:
https://codepen.io/arforcee/pen/erbKi?limit=all&page=2&q=circular+loader
Is this possible at all and if so, could someone please advice on this?
The CSS with SVG is this:
@import "compass/css3";
$radius: 100px; //also set the attribute in html
$stroke-width: 10px; //also set the attribute in html
$circle-stroke-color: red;
$circle-fill-color: #3ab54a;
$animation-duration: 60s;
.circle {
@include animation(load $animation-duration ease-in-out);
@include transform(rotate(-90deg));
@include transform-origin($radius + $stroke-width);
fill: $circle-fill-color;
stroke: $circle-stroke-color;
stroke-dasharray: ($radius * 2) * pi(); //C = πd
}
@include keyframes(load) {
from {
stroke-dashoffset: ($radius * 2) * pi(); //C = πd
}
to {
stroke-dashoffset: 0;
}
}