Created
March 15, 2019 05:31
-
-
Save asifvora/d01b272d80509aa5d4d845e4f7f939cc to your computer and use it in GitHub Desktop.
Donut spinner : Creates a donut spinner that can be used to indicate the loading of content.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
@keyframes donut-spin { | |
0% { | |
transform: rotate(0deg); | |
} | |
100% { | |
transform: rotate(360deg); | |
} | |
} | |
.donut { | |
display: inline-block; | |
border: 4px solid rgba(0, 0, 0, 0.1); | |
border-left-color: #7983ff; | |
border-radius: 50%; | |
width: 30px; | |
height: 30px; | |
animation: donut-spin 1.2s linear infinite; | |
} | |
</style> | |
<div class="donut"></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment