anya-ji's picture
Add files using upload-large-folder tool
646ba5f verified
Raw History Blame Contribute Delete
1.98 kB
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Dosis:800">
<style>html {
position: relative;
width: 100%;
height: 100%;
overflow: hidden; }
body {
position: relative;
background: #333;
height: 100vh;
overflow: hidden;
margin: 0;
padding: 0; }
#ui {
width: 300px;
height: 300px; }
#ui .ball {
position: absolute;
left: 50%;
top: 50%;
height: 20px;
margin-top: -10px;
transform-origin: 0 50%;
opacity: 0.7; }
#ui .ball:nth-child(1) {
width: 150px;
animation: rotation 3000ms linear infinite; }
#ui .ball:nth-child(2) {
width: 130px;
animation: rotation 2800ms linear infinite; }
#ui .ball:nth-child(3) {
width: 110px;
animation: rotation 2600ms linear infinite; }
#ui .ball:nth-child(4) {
width: 90px;
animation: rotation 2400ms linear infinite; }
#ui .ball:nth-child(5) {
width: 70px;
animation: rotation 2200ms linear infinite; }
#ui .ball:nth-child(6) {
width: 50px;
animation: rotation 2000ms linear infinite; }
#ui .ball:before {
content: "";
position: absolute;
top: 0;
right: 0;
width: 35px;
height: 20px;
background: #fff;
border-radius: 100%;
opacity: 0.7;
box-shadow: 0 0 20px 30px #fff; }
#ui .ball:after {
content: "";
position: absolute;
top: 0;
right: 20px;
width: 20px;
height: 20px;
background: #fff;
border-radius: 100%;
box-shadow: 0 0 10px 20px #fff; }
@keyframes rotation {
0% {
transform: rotateZ(0deg) scale(1.5);
opacity: 0; }
100% {
transform: rotateZ(360deg) scale(0);
opacity: 1; } }
</style>
</head>
<body>
<div id="ui"><div class="ball"></div><div class="ball"></div><div class="ball"></div><div class="ball"></div><div class="ball"></div><div class="ball"></div></div>
<script></script>
</body>
</html>