css spin add animation to cross code example
Example: 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);
}
}