Created
April 16, 2015 09:53
-
-
Save wileam/8d0e404d8a4000f922af to your computer and use it in GitHub Desktop.
loading dots css animation
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
.loading { | |
font-size: 30px; | |
} | |
.loading:after { | |
overflow: hidden; | |
display: inline-block; | |
vertical-align: bottom; | |
-webkit-animation: ellipsis steps(4,end) 900ms infinite; | |
animation: ellipsis steps(4,end) 900ms infinite; | |
content: "\2026"; /* ascii code for the ellipsis character */ | |
width: 0px; | |
} | |
@keyframes ellipsis { | |
to { | |
width: 1.25em; | |
} | |
} | |
@-webkit-keyframes ellipsis { | |
to { | |
width: 1.25em; | |
} | |
} | |
/* | |
* demo: http://codepen.io/thetallweeks/pen/yybGra | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment