-
-
Save pid/7397246 to your computer and use it in GitHub Desktop.
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
/** | |
* Google-style progress indicator | |
*/ | |
@keyframes progress { | |
50% { border-width: .5em 0; } | |
to { border-width: .5em 0 0 0; } | |
} | |
@keyframes rotate { | |
to { transform: rotate(-270deg); } | |
} | |
.progress { | |
font-size: 50px; /* Size of the progress indicator */ | |
width: 1em; | |
height: 1em; | |
border: solid white; | |
border-top-color: #ddd; | |
border-width: 0 0 .5em 0; | |
border-radius: 50%; | |
box-sizing: border-box; | |
background: linear-gradient(white 50%, #ddd 50%); | |
background-origin: border-box; | |
transform: rotate(90deg); | |
animation: rotate 2s steps(4) infinite, progress .5s linear infinite alternate; | |
} |
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
<div class="progress"></div> |
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
// alert('Hello world!'); |
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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment