Miki
0
Q:

css spinning animation

/* How to use : <div class="spinning"></div>*/

.spinning {
  animation-name: spin;
  animation-duration: 1500ms; /* How long lasts 1 turn */
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

@keyframes spin {
    from {
        transform:rotate(0deg);
    }
    to {
        transform:rotate(360deg);
    }
}
1

New to Communities?

Join the community