Skip to content

Instantly share code, notes, and snippets.

@duykhoa
Created July 24, 2014 09:44
Show Gist options
  • Save duykhoa/8102ad14941a0c4c33b2 to your computer and use it in GitHub Desktop.
Save duykhoa/8102ad14941a0c4c33b2 to your computer and use it in GitHub Desktop.
A Pen by duykhoa.
.dark-container
.circle-wrapper
- 25.times do |time|
.circle
@-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