1/* How to use : <div class="spinning"></div>*/
2
3.spinning {
4 animation-name: spin;
5 animation-duration: 1500ms; /* How long lasts 1 turn */
6 animation-iteration-count: infinite;
7 animation-timing-function: linear;
8}
9
10@keyframes spin {
11 from {
12 transform:rotate(0deg);
13 }
14 to {
15 transform:rotate(360deg);
16 }
17}