Created
August 12, 2014 14:26
-
-
Save co0kie/986c2180171db48cd8dc to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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="wrapper"> | |
<div class="ring"></div> | |
</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
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.0.rc.1) | |
// ---- | |
@keyframes spin { | |
from { | |
transform:rotateZ(0deg); | |
} | |
to { | |
transform:rotateZ(-360deg); | |
} | |
} | |
html, body{ | |
height:100%; | |
} | |
.wrapper{ | |
margin:5% auto; | |
width:324px; | |
height:324px; | |
animation-duration: 100s; | |
animation-name: spin; | |
animation-iteration-count: infinite; | |
animation-timing-function:linear; | |
} | |
.ring{ | |
position:absolute; | |
top:0px; | |
left:0px; | |
background: url('https://scontent-a-lax.xx.fbcdn.net/hphotos-xap1/t1.0-9/p75x225/1600982_10204509632881388_3094687938608111138_n.jpg') no-repeat; | |
width:324px; | |
height:324px; | |
animation-duration: 42s; | |
animation-name: spin; | |
animation-iteration-count: infinite; | |
animation-timing-function:linear; | |
animation-direction: reverse; | |
} | |
.one{ | |
top:172px; | |
left:196px; | |
} | |
.two{ | |
top:13px; | |
left:122px; | |
} | |
.three{ | |
top:156px; | |
left:21px; | |
} |
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
@keyframes spin { | |
from { | |
transform: rotateZ(0deg); | |
} | |
to { | |
transform: rotateZ(-360deg); | |
} | |
} | |
html, body { | |
height: 100%; | |
} | |
.wrapper { | |
margin: 5% auto; | |
width: 324px; | |
height: 324px; | |
animation-duration: 100s; | |
animation-name: spin; | |
animation-iteration-count: infinite; | |
animation-timing-function: linear; | |
} | |
.ring { | |
position: absolute; | |
top: 0px; | |
left: 0px; | |
background: url("https://scontent-a-lax.xx.fbcdn.net/hphotos-xap1/t1.0-9/p75x225/1600982_10204509632881388_3094687938608111138_n.jpg") no-repeat; | |
width: 324px; | |
height: 324px; | |
animation-duration: 42s; | |
animation-name: spin; | |
animation-iteration-count: infinite; | |
animation-timing-function: linear; | |
animation-direction: reverse; | |
} | |
.one { | |
top: 172px; | |
left: 196px; | |
} | |
.two { | |
top: 13px; | |
left: 122px; | |
} | |
.three { | |
top: 156px; | |
left: 21px; | |
} |
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="wrapper"> | |
<div class="ring"></div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment