css:
@-webkit-keyframes load{
0%{
transform:rotate(0);
}
50%{
transform:rotate(160deg);
}
100%{
transform:rotate(360deg);
}
}
.loading{
width: 40px;
height: 40px;
border: 4px solid #aaa;
border-left-color: #ddd;
border-radius: 24px;
-webkit-animation:load 1s linear 1s infinite;
}
html:
<div class="loading"></div>