<svg viewBox="0 0 100 100">
<path d="M 50 96 a 46 46 0 0 1 0 -92 46 46 0 0 1 0 92" />
</svg>
svg {
max-width: 240px;
}
path {
stroke: black;
stroke-width: 8;
stroke-dasharray: 288.5;
stroke-linecap: round;
fill: none;
transform-origin: 50px 50px;
animation:
pathStroke 3.75s infinite ease-in-out,
pathRotate 7.5s infinite cubic-bezier(1,.5,0,.5);
}
@keyframes pathStroke {
0% { stroke-dashoffset: -288.5; }
40%, 70% { stroke-dashoffset: 0; }
100% { stroke-dashoffset: 288.5; }
}
@keyframes pathRotate {
0% { transform: rotate(0deg); }
50% { transform: rotate(-540deg); }
100% { transform: rotate(-1080deg); }
}
This Pen doesn't use any external CSS resources.