Skip to content

Instantly share code, notes, and snippets.

@ChoWonmin
Created February 3, 2020 15:29
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 ChoWonmin/1168711d1f733dbb82cb8d5c21b848a7 to your computer and use it in GitHub Desktop.
Save ChoWonmin/1168711d1f733dbb82cb8d5c21b848a7 to your computer and use it in GitHub Desktop.
spinner style
#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);
}
}
#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