Skip to content

Instantly share code, notes, and snippets.

@codebucks27
Created January 9, 2021 11:32
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 codebucks27/8e5552dcc539f15aca7916480b84c3dc to your computer and use it in GitHub Desktop.
Save codebucks27/8e5552dcc539f15aca7916480b84c3dc to your computer and use it in GitHub Desktop.
.spinner {
width: 300px;
height: 300px;
display: flex;
justify-content: center;
align-items: center;
background-color: transparent;
}
.spinner span {
font-size: 2rem;
animation: fade 1s linear 0s infinite;
padding-right: 1rem;
}
.half-spinner {
width: 50px;
height: 50px;
border: 3px solid #03fc4e;
border-top: 3px solid transparent;
border-radius: 50%;
animation: spin 0.5s linear 0s infinite;
}
.completed {
font-size: 2rem;
color: #03fc4e;
animation: bigger 1s linear;
}
@keyframes bigger {
from {
transform: scale(0);
}
to {
transform: scale(2);
}
}
@keyframes spin {
from {
transform: rotate(0);
}
to {
transform: rotate(360deg);
}
}
@keyframes fade {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment