Skip to content

Instantly share code, notes, and snippets.

@codingdudecom
Created December 17, 2020 13:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codingdudecom/c2b2f6ab5ce31dd34519352545bc9d5f to your computer and use it in GitHub Desktop.
Save codingdudecom/c2b2f6ab5ce31dd34519352545bc9d5f to your computer and use it in GitHub Desktop.
Rotating Circle Text
<div>Made with the MockoFun <a href="https://medium.com/@codingdudecom/circle-text-2e7e5246cc94">circle text</a> generator</div>
<img style="--rotation-duration:10s;" src="https://i.imgur.com/zdPkiY2.png" alt="Circle Text" class="rotating-circle-text">
.rotating-circle-text{
-webkit-animation: rotating var(--rotation-duration) linear infinite;
-moz-animation: rotating (--rotation-duration) linear infinite;
-ms-animation: rotating (--rotation-duration) linear infinite;
-o-animation: rotating (--rotation-duration) linear infinite;
animation: rotating (--rotation-duration) linear infinite;
}
@keyframes rotating {
from {
-ms-transform: rotate(0deg);
-moz-transform: rotate(0deg);
-webkit-transform: rotate(0deg);
-o-transform: rotate(0deg);
transform: rotate(0deg);
}
to {
-ms-transform: rotate(360deg);
-moz-transform: rotate(360deg);
-webkit-transform: rotate(360deg);
-o-transform: rotate(360deg);
transform: rotate(360deg);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment