Last active
September 17, 2015 15:23
-
-
Save yulu/e257fc071f4a5fb39223 to your computer and use it in GitHub Desktop.
qOZjOP
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="spinner"> | |
<div class="square1"></div> | |
<div class="square2"></div> | |
<div class="square3"></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
.spinner { | |
margin: 100px auto 0; | |
width: 70px; | |
text-align: center; | |
} | |
.spinner > div { | |
width: 12px; | |
height: 12px; | |
background-color: #333; | |
display: inline-block; | |
-webkit-transform: scaleX(1) scaleY(1) scaleZ(1) skewX(-30deg) skewY(20deg); | |
-webkit-transform-origin: 50% 50% 0; | |
transform: scaleX(1) scaleY(1) scaleZ(1) skewX(-30deg) skewY(20deg); | |
transform-origin: 50% 50% 0; | |
-webkit-animation-duration: 1.2s; | |
-webkit-animation-iteration-count: infinite; | |
animation-duration: 1.2s; | |
animation-iteration-count: infinite; | |
} | |
.spinner .square1 { | |
-webkit-animation-name: blink-1; | |
animation-name: blink-1; | |
margin-right: 4px; | |
} | |
.spinner .square2 { | |
-webkit-animation-delay: 0.3s; | |
-webkit-animation-name: blink-1; | |
animation-delay: 0.3s; | |
animation-name: blink-1; | |
margin-right: 4px; | |
} | |
.spinner .square3 { | |
-webkit-animation-delay: 0.9s; | |
-webkit-animation-name: blink-3; | |
animation-delay: 0.9s; | |
animation-name: blink-3; | |
} | |
@-webkit-keyframes blink-1 { | |
50%, 100% { | |
background-color: #eddbe8 | |
} 25% { | |
background-color: #e99989 | |
} 0% { | |
background-color: #ea674b | |
} | |
} | |
@keyframes blink-1 { | |
50%, 100% { | |
background-color: #eddbe8 | |
} 25% { | |
background-color: #e99989 | |
} 0% { | |
background-color: #ea674b | |
} | |
} | |
@-webkit-keyframes blink-3 { | |
100% { | |
background-color: #ea674b | |
} 0%, 50% { | |
background-color: #eddbe8 | |
} | |
} | |
@keyframes blink-3 { | |
100% { | |
background-color: #ea674b | |
} 0%, 50% { | |
background-color: #eddbe8 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment