Created
June 6, 2021 16:52
-
-
Save GermaVinsmoke/f5007e59a34ae8e2ca30b5befc4bd43a to your computer and use it in GitHub Desktop.
react-page-loader-css
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
| <head> | |
| <style> | |
| body { | |
| margin: 0; | |
| padding: 0; | |
| height: 100%; | |
| } | |
| .loader-wrapper { | |
| width: 100%; | |
| height: 100%; | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| background-color: #0b0b0b; | |
| display: grid; | |
| place-items: center; | |
| } | |
| .loader { | |
| border: 16px solid #e3e3e3; | |
| border-top: 16px solid #3498db; | |
| border-radius: 50%; | |
| width: 140px; | |
| height: 140px; | |
| animation: spin 1s linear infinite; | |
| } | |
| @keyframes spin { | |
| 0% { | |
| transform: rotate(0deg); | |
| } | |
| 100% { | |
| transform: rotate(360deg); | |
| } | |
| } | |
| </style> | |
| </head> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment