Created
December 4, 2013 04:09
-
-
Save iamkevinv/7782201 to your computer and use it in GitHub Desktop.
Just for fun™: Flickr spinner in pure CSS - Lea L
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
/** | |
* Just for fun™: Flickr spinner in pure CSS - Lea L | |
*/ | |
@keyframes move { | |
to { left: 50%; } | |
} | |
@keyframes cover { | |
from,49.9% { z-index: 1 } | |
50.1%, to { z-index: 0 } | |
} | |
.flickr-spinner { | |
width: 2em; | |
height: 1em; | |
position: relative; | |
} | |
.flickr-spinner:before, | |
.flickr-spinner:after { | |
content: ''; | |
position: absolute; | |
left: 0; | |
width: 50%; | |
height: 100%; | |
border-radius: 50%; | |
animation: cover 2s infinite reverse, | |
move 1s infinite alternate; | |
} | |
.flickr-spinner:before { | |
background: #0063dc; | |
animation-direction: normal, alternate-reverse; | |
} | |
.flickr-spinner:after { | |
background: #ff0084; | |
} |
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="flickr-spinner"></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":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment