-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject2.html
More file actions
95 lines (90 loc) · 3 KB
/
project2.html
File metadata and controls
95 lines (90 loc) · 3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title></title>
<style>
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: #000;
overflow: hidden;
}
.container{
position: absolute;
top: 20%;
height: 90%;
display: flex;
justify-content: center;
align-items: center;
}
.circle{
position: absolute;
background: transparent;
width: calc(var(--i) * 2.5vmin);
aspect-ratio: 1;
border-radius: 50%;
border: 3px solid rgb(0 255 13);
transform-style: preserve-3d;
transform: rotateX(70deg) translate(50px);
animation: animate 3s ease-in-out calc(var(--i) * 0.08s) infinite;
box-shadow: 0 0 15px rgb(124 124 124), inset 0 0 15px rgb(124 1224 124);
}
@keyframes animate {
0%,
100%{
transform: rotateX(70deg) translateZ(50px) translateY(0);
filter: hue-rotate(0);
}
50% {
transform: rotateX(70deg) translateZ(50px) translateY(-50vmin);
filter: hue-rotate(360deg);
}
}
</style>
</head>
<body>
<div class="container">
<div class="circle" style="--i:0;"></div>
<div class="circle" style="--i:1;"></div>
<div class="circle" style="--i:2;"></div>
<div class="circle" style="--i:3;"></div>
<div class="circle" style="--i:4;"></div>
<div class="circle" style="--i:5;"></div>
<div class="circle" style="--i:6;"></div>
<div class="circle" style="--i:7;"></div>
<div class="circle" style="--i:8;"></div>
<div class="circle" style="--i:9;"></div>
<div class="circle" style="--i:10;"></div>
<div class="circle" style="--i:11;"></div>
<div class="circle" style="--i:12;"></div>
<div class="circle" style="--i:13;"></div>
<div class="circle" style="--i:14;"></div>
<div class="circle" style="--i:15;"></div>
<div class="circle" style="--i:16;"></div>
<div class="circle" style="--i:17;"></div>
<div class="circle" style="--i:18;"></div>
<div class="circle" style="--i:19;"></div>
<div class="circle" style="--i:20;"></div>
<div class="circle" style="--i:21;"></div>
<div class="circle" style="--i:22;"></div>
<div class="circle" style="--i:23;"></div>
<div class="circle" style="--i:24;"></div>
<div class="circle" style="--i:25;"></div>
<div class="circle" style="--i:26;"></div>
<div class="circle" style="--i:27;"></div>
<div class="circle" style="--i:28;"></div>
<div class="circle" style="--i:29;"></div>
<div class="circle" style="--i:30;"></div>
</div>
<script src="dom.js"></script>
</body>
</html>