Created
July 24, 2014 09:44
-
-
Save duykhoa/8102ad14941a0c4c33b2 to your computer and use it in GitHub Desktop.
A Pen by duykhoa.
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
.dark-container | |
.circle-wrapper | |
- 25.times do |time| | |
.circle |
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
@-webkit-keyframes rotationcircle1 | |
0 | |
transform: rotate(0) | |
50% | |
transform: rotate(180deg) | |
100% | |
transform: rotate(360deg) | |
@-webkit-keyframes rotationcircle2 | |
0 | |
transform: rotate(0) | |
50% | |
transform: rotate(-180deg) | |
100% | |
transform: rotate(-360deg) | |
html, body | |
margin: 0 | |
padding: 0 | |
height: 100% | |
.dark-container | |
width: 100% | |
height: 100% | |
background-color: #262829 | |
.circle-wrapper | |
width: 500px | |
margin: 0 auto | |
display: flex | |
flex-direction: row | |
flex-wrap: wrap | |
.circle | |
width: 100px | |
height: 100px | |
background: url('http://hack.lenotta.com/wp-content/uploads/2014/07/outerRing.svg') 100% 100% no-repeat | |
background-size: 100px 100px | |
-webkit-delay: 0 | |
&:nth-child(3n) | |
-webkit-animation: rotationcircle1 5s infinite | |
&:nth-child(3n+1) | |
-webkit-animation: rotationcircle2 2s infinite | |
&:nth-child(3n+2) | |
-webkit-animation: rotationcircle1 4s infinite |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment