A Pen by Pavel Grinchenko on CodePen.
Created
January 21, 2015 21:13
-
-
Save psdcoder/6b6c413c509a177a3094 to your computer and use it in GitHub Desktop.
NPjJxw
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
| <div id="loader"></div> |
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
| html, body { | |
| height: 100%; | |
| } | |
| body { | |
| background-color: #363b4a; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| } | |
| #loader { | |
| position: relative; | |
| width: 40px; | |
| height: 40px; | |
| } | |
| #loader:after { | |
| content: ' '; | |
| position: absolute; | |
| left: 0; | |
| top: 0; | |
| right: 0; | |
| bottom: 0; | |
| display: block; | |
| border-top: 1px solid #888; | |
| border-bottom: 1px solid #888; | |
| border-left: 1px solid #888; | |
| border-right: 1px solid #fff; | |
| border-radius: 50%; | |
| animation: rotating 0.8s linear infinite; | |
| } | |
| @keyframes rotating { | |
| from { | |
| transform: rotateZ(-360deg); | |
| } | |
| to { | |
| transform: rotateZ(0deg); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment