Created
February 11, 2013 23:27
-
-
Save tregusti/4758599 to your computer and use it in GitHub Desktop.
A CSS animation solution of the dots animating when installing MSVS2012.
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
<style> | |
body, html { | |
height: 100%; | |
margin: 0; | |
padding: 0; | |
background: #333; | |
} | |
#container { | |
position: relative; | |
margin: 100px auto; | |
width: 310px; | |
height: 6px; | |
overflow: hidden; | |
} | |
@-webkit-keyframes dot { | |
0% { left: -60px; } | |
50% { left: 360px; } | |
100% { left: 360px; } | |
} | |
#container div { | |
-webkit-animation-duration: 3s; | |
-webkit-animation-timing-function: cubic-bezier(.1, .8, 1, .1); | |
-webkit-animation-name: dot; | |
-webkit-animation-iteration-count: infinite; | |
background: red; | |
border-radius: 2px; | |
width: 4px; | |
height: 4px; | |
top: 1px; | |
box-shadow: 0 0 1px rgba(255, 0, 0, .5); | |
position: absolute; | |
} | |
#dot1 { -webkit-animation-delay: .50s; margin-left: -20px; } | |
#dot2 { -webkit-animation-delay: .25s; margin-left: -10px; } | |
#dot3 { -webkit-animation-delay: 0s; margin-left: 0; } | |
#dot4 { -webkit-animation-delay: -.25s; margin-left: 10px; } | |
#dot5 { -webkit-animation-delay: -.50s; margin-left: 20px; } | |
</style> | |
<div id="container"> | |
<div id="dot1"></div> | |
<div id="dot2"></div> | |
<div id="dot3"></div> | |
<div id="dot4"></div> | |
<div id="dot5"></div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment