Skip to content

Instantly share code, notes, and snippets.

@sonalien
Forked from anonymous/dabblet.css
Created December 25, 2017 10:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sonalien/31a79f8f8cc2f9b125d2da2e69e215be to your computer and use it in GitHub Desktop.
Save sonalien/31a79f8f8cc2f9b125d2da2e69e215be to your computer and use it in GitHub Desktop.
Untitled
body{background:red}
.container{
position: absolute;
left:50%;
top:50%;
}
.circle{
width:15px;
height:15px;
background: #fff;
border-radius: 50%;
position:absolute;
animation: ani 2s linear infinite;
}
.circle:nth-child(2){
animation-delay: -0.3s;
}
.circle:nth-child(3){
animation-delay:-0.6s;
}
@keyframes ani{
0%{transform-origin: 400% 50%; transform:rotate(0);}
50%{transform-origin:400% 50%; transform: rotate(360deg);}
50.1%{transform-origin:-300% 50%; transform:rotate(0deg);}
100%{transform-origin:-300% 50%; transform:rotate(-360deg);}
}
}
<div class="container">
<div class="circle"></div>
<div class="circle"></div>
<div class="circle"></div>
</div>
// alert('Hello world!');
{"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment