Created
May 12, 2020 12:59
-
-
Save CliffCrerar/5fbe689cf064cc5a63c377f40512503f to your computer and use it in GitHub Desktop.
Html 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
| <style> | |
| .spinner-overlay { | |
| position: absolute; | |
| background:transparent; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| z-index: 10000; | |
| background: rgba(0, 0, 0, 0.479); | |
| } | |
| .spinner{ | |
| border-left:3px solid blue; | |
| border-top:3px solid white; | |
| border-bottom:3px solid white; | |
| border-right:3px solid white; | |
| border-radius: 50%; | |
| animation: spinner 3s infinite linear; | |
| width:50px; | |
| height: 50px; | |
| z-index: 100001; | |
| } | |
| @keyframes spinner { | |
| 0% { transform: rotate(359deg);} | |
| } | |
| </style> | |
| <body> | |
| <div class="spinner-overlay"> | |
| <div class="spinner"></div> | |
| </div> | |
| </body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment