A Pen by Andrey Dresvyannikov on CodePen.
Created
May 26, 2014 08:37
-
-
Save sepulchered/0d9e197430b29cf3c0b4 to your computer and use it in GitHub Desktop.
A Pen by Andrey Dresvyannikov.
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 id="orbit"> | |
<div id="outter-circle"> | |
<div id="inner-circle"> | |
<div id="inner-circle2"> | |
<div id="inner-circle3"></div> | |
</div> | |
</div> | |
</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
body { | |
background-color: #222; | |
} | |
#orbit { | |
margin: auto; | |
margin-top: 150px; | |
width: 350px; | |
height: 350px; | |
border-radius: 350px; | |
-webkit-animation: rotate-inner; | |
-webkit-animation-duration: 8s; | |
-webkit-animation-iteration-count: infinite; | |
-webkit-animation-timing-function: linear; | |
} | |
#outter-circle { | |
margin: auto; | |
width: 200px; | |
height: 200px; | |
border: 5px solid; | |
border-radius: 200px; | |
border-right-color: #1abc9c; | |
border-left-color: #3498db; | |
border-top-color: #f1c40f; | |
border-bottom-color: #e74c3c; | |
-webkit-animation: rotate-outter; | |
-webkit-animation-duration: 5s; | |
-webkit-animation-iteration-count: infinite; | |
-webkit-animation-timing-function: linear; | |
} | |
#inner-circle { | |
margin: auto; | |
width: 140px; | |
height: 140px; | |
border: 5px solid; | |
border-radius: 140px; | |
border-bottom-color: #2ecc71; | |
border-top-color: #9b59b6; | |
border-left-color: #e67e22; | |
border-right-color: #ecf0f1; | |
-webkit-animation: rotate-inner; | |
-webkit-animation-duration: 3s; | |
-webkit-animation-iteration-count: infinite; | |
-webkit-animation-timing-function: linear; | |
} | |
#inner-circle2 { | |
margin: auto; | |
width: 50px; | |
height: 50px; | |
border: 5px solid; | |
border-radius: 50px; | |
border-bottom-color: #16a085; | |
border-top-color: #2980b9; | |
border-left-color: #f39c12; | |
border-right-color: #c0392b; | |
-webkit-animation: rotate-outter; | |
-webkit-animation-duration: 1.5s; | |
-webkit-animation-iteration-count: infinite; | |
-webkit-animation-timing-function: linear; | |
} | |
#inner-circle3 { | |
margin: auto; | |
width: 10px; | |
height: 10px; | |
border: 5px solid; | |
border-radius: 10px; | |
border-bottom-color: #27ae60; | |
border-top-color: #8e44ad; | |
border-left-color: #d35400; | |
border-right-color: #bdc3c7; | |
-webkit-animation: rotate-inner; | |
-webkit-animation-duration: 1s; | |
-webkit-animation-iteration-count: infinite; | |
-webkit-animation-timing-function: linear; | |
} | |
@-webkit-keyframes rotate-outter { | |
from { | |
-webkit-transform: rotate(0deg); | |
} | |
to { | |
-webkit-transform: rotate(360deg); | |
} | |
} | |
@-webkit-keyframes rotate-inner { | |
from { | |
-webkit-transform: rotate(0deg); | |
} | |
to { | |
-webkit-transform: rotate(-360deg); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment