Skip to content

Instantly share code, notes, and snippets.

Created November 16, 2016 11:39
Show Gist options
  • Save anonymous/4b92ecf0e8d841a3de05ee7600f4f8b2 to your computer and use it in GitHub Desktop.
Save anonymous/4b92ecf0e8d841a3de05ee7600f4f8b2 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/xakozetaji
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
div{
--size:100px;
width:var(--size);
height:var(--size);
margin:0;
border-style:solid;
border-width:0 0 0 1em;
border-color:hsla(0, 100%, 100%, .3) hsla(0, 100%, 100%, .3) hsla(0, 100%, 100%, .3) hsla(0, 100%, 100%, 1);
font-size:.5em;
margin:50px auto;
border-radius:50%;
animation: spins 1s infinite linear;
}
body{
background: red;
position:relative;
margin:0;
}
div:nth-child(2){
top:-100px;
position:relative;
animation: spins 1s infinite linear reverse;
}
div:nth-child(3){
top:-200px;
position:relative;
animation: spins 1s infinite linear;
}
div:nth-child(4){
top:-300px;
position:relative;
animation: spins 1s infinite linear reverse;
}
@keyframes spins{
to{
transform: rotate(360deg);
}
}
</style>
</head>
<body>
<div></div>
<div></div>
<div></div>
<div></div>
<script id="jsbin-source-css" type="text/css">div{
--size:100px;
width:var(--size);
height:var(--size);
margin:0;
border-style:solid;
border-width:0 0 0 1em;
border-color:hsla(0, 100%, 100%, .3) hsla(0, 100%, 100%, .3) hsla(0, 100%, 100%, .3) hsla(0, 100%, 100%, 1);
font-size:.5em;
margin:50px auto;
border-radius:50%;
animation: spins 1s infinite linear;
}
body{
background: red;
position:relative;
margin:0;
}
div:nth-child(2){
top:-100px;
position:relative;
animation: spins 1s infinite linear reverse;
}
div:nth-child(3){
top:-200px;
position:relative;
animation: spins 1s infinite linear;
}
div:nth-child(4){
top:-300px;
position:relative;
animation: spins 1s infinite linear reverse;
}
@keyframes spins{
to{
transform: rotate(360deg);
}
}
</script>
</body>
</html>
div{
--size:100px;
width:var(--size);
height:var(--size);
margin:0;
border-style:solid;
border-width:0 0 0 1em;
border-color:hsla(0, 100%, 100%, .3) hsla(0, 100%, 100%, .3) hsla(0, 100%, 100%, .3) hsla(0, 100%, 100%, 1);
font-size:.5em;
margin:50px auto;
border-radius:50%;
animation: spins 1s infinite linear;
}
body{
background: red;
position:relative;
margin:0;
}
div:nth-child(2){
top:-100px;
position:relative;
animation: spins 1s infinite linear reverse;
}
div:nth-child(3){
top:-200px;
position:relative;
animation: spins 1s infinite linear;
}
div:nth-child(4){
top:-300px;
position:relative;
animation: spins 1s infinite linear reverse;
}
@keyframes spins{
to{
transform: rotate(360deg);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment