Created
February 3, 2020 15:29
-
-
Save ChoWonmin/1168711d1f733dbb82cb8d5c21b848a7 to your computer and use it in GitHub Desktop.
spinner style
This file contains 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
#spinner { | |
width: 200px; | |
height: 200px; | |
position: fixed; | |
top: calc(50vh - 100px); | |
left: calc(50vw - 100px); | |
border-radius: 50%; | |
border: 3px solid #b39fd5; | |
border-top: solid coral; | |
z-index: 100; | |
animation: spinner 0.9s linear infinite; | |
} | |
@keyframes spinner { | |
to { | |
transform: rotate(360deg); | |
} | |
} |
This file contains 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
#spinner | |
position: absolute | |
width: 60px | |
height: 60px | |
margin-top: -30px | |
margin-left: -30px | |
border-radius: 50% | |
border: 3px solid lavender | |
border-top: solid coral | |
animation: spinner 0.7s linear infinite | |
@keyframes spinner | |
to | |
transform: rotate(360deg) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment