Make Css Element Spin 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);
}
}

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable