Created
November 16, 2016 11:39
-
-
Save anonymous/4b92ecf0e8d841a3de05ee7600f4f8b2 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/xakozetaji
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
<!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> |
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
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