I split @ArunBertil "fulcrum" (very good) solution to convert it to CSS3 Animation :
Demo version
CSS
@keyframes drawArc1 { 0% { transform: rotate(180deg); } 100% { transform: rotate(0deg); } } @keyframes drawArc2 { 0% { transform: rotate(-180deg); } 100% { transform: rotate(0deg); } } body{ padding: 150px; background: black; } .wrapper { width: 300px; animation: drawArc1 3s linear infinite; } .inner { border-radius: 50%; display: inline-block; padding: 30px; background: yellowgreen; animation: drawArc2 3s linear infinite; }
HTML
<div class="wrapper"> <div class="inner"></div> </div>
Look at FireFox ... to run it in other browsers, just put the prefixes ( @-webkit-keyframes , etc.)
Andrea Ligios
source share