Answers for "css spinning animation"

CSS
-1

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);
    }
}
Posted by: Guest on July-30-2020

Browse Popular Code Answers by Language