Created
September 3, 2019 15:23
-
-
Save JoshK2/bcf5fa741325f66982db79da528bd019 to your computer and use it in GitHub Desktop.
React spinner example - circle loader 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
.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