Skip to content

Instantly share code, notes, and snippets.

@ljanzik
Last active August 29, 2015 14:10
Show Gist options
  • Save ljanzik/b8635d02cf656b6ad820 to your computer and use it in GitHub Desktop.
Save ljanzik/b8635d02cf656b6ad820 to your computer and use it in GitHub Desktop.
ul.loading li{
list-style:none;
width:3px;
height:3px;
display:inline-block;
background:#fff;
position:absolute;
margin-left:-5%;
top:85px;
animation-name:loading;
animation-duration:4s;
animation-iteration-count:infinite;
animation-timing-function:cubic-bezier(.05,.7,.95,.3);
}
@-webkit-keyframes loading{
0%{margin-left:-5%}
20%{margin-left:-5%}
80%{margin-left:105%}
100%{margin-left:105%}
}
<ul class="loading">
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<ul class="loading">
<li></li>
<li style="animation-delay: .25s"></li>
<li style="animation-delay: .5s"></li>
<li style="animation-delay: .75s"></li>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment