Skip to content

Instantly share code, notes, and snippets.

@antruongnguyen
Created July 30, 2019 07:38
Show Gist options
  • Save antruongnguyen/cf39b82b0812c328665224dfbcee89ed to your computer and use it in GitHub Desktop.
Save antruongnguyen/cf39b82b0812c328665224dfbcee89ed to your computer and use it in GitHub Desktop.
CSS Loading Icon
.loading {
height: 40px;
width: 40px;
background: transparent;
border-radius: 50%;
border: 2px solid rgba(0, 0, 0, 0.3);
border-top: 2px solid #1d9af2;
animation: spinner 500ms 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