Skip to content

Instantly share code, notes, and snippets.

@JoshK2
Created September 3, 2019 15:23
Show Gist options
  • Save JoshK2/bcf5fa741325f66982db79da528bd019 to your computer and use it in GitHub Desktop.
Save JoshK2/bcf5fa741325f66982db79da528bd019 to your computer and use it in GitHub Desktop.
React spinner example - circle loader style
.lds-circle {
display: inline-block;
margin: 8px;
border-radius: 50%;
animation: lds-circle 2.4s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
@keyframes lds-circle {
0%, 100% {
animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5);
}
0% {
transform: rotateY(0deg);
}
50% {
transform: rotateY(1800deg);
animation-timing-function: cubic-bezier(0, 0.5, 0.5, 1);
}
100% {
transform: rotateY(3600deg);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment