Created
January 26, 2019 04:47
-
-
Save Lcfvs/e1782ef1abb178598cbdecafc0fce704 to your computer and use it in GitHub Desktop.
CSS spinner
This file contains hidden or 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
| .fetching { | |
| pointer-events: none; | |
| } | |
| .fetching::after { | |
| content: ''; | |
| border-radius: 100%; | |
| border-top: .2em solid rgba(255, 255, 255, .9); | |
| border-left: .2em double rgba(255, 255, 255, .6); | |
| border-bottom: .2em dotted rgba(255, 255, 255, .3); | |
| border-right: .2em solid transparent; | |
| animation: fetching .8s infinite linear; | |
| margin: -2.4em 0 1em .5em; | |
| width: 0; | |
| display: block; | |
| padding: .8em; | |
| } | |
| @keyframes fetching { | |
| 0% { | |
| transform: rotate(0deg); | |
| } | |
| 100% { | |
| transform: rotate(360deg); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment