-
Notifications
You must be signed in to change notification settings - Fork 0
/
circles.html
executable file
·111 lines (111 loc) · 1.81 KB
/
circles.html
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!DOCTYPE html>
<style type="text/css">
body{
background: #ecf0f1;
overflow: hidden;
}
@keyframes cir1{
50% {transform: translate(5vw, 5vw);}
}
@keyframes cir2{
50% {transform: translate(-5vw, 5vw);}
}
@keyframes cir3{
50% {transform: translate(0vw, -5vw);}
}
@keyframes box1{
100%{ transform: rotate(360deg);}
}
@keyframes box2{
100%{ transform: rotate(-360deg);}
}
@keyframes box3{
100%{ transform: rotate(360deg);}
}
@keyframes box4{
100%{ transform: rotate(-360deg);}
}
#cir1, #cir2, #cir3{
position: absolute;
width: 10vw;
height: 10vw;
border-radius: 50%;
top: 20vw;
left: 42.5vw;
opacity: 0.9;
transition: all 0.5s ease;
z-index: 0;
animation: cir1 2s infinite reverse ease;
border: double black 1vw;
background: #FF5722;
}
#cir2{
background: #795548;
left: 47.5vw;
animation: cir2 2s infinite reverse ease;
}
#cir3{
background: #8BC34A;
top: 25vw;
left: 45vw;
animation: cir3 2s infinite reverse ease;
}
#box1, #box2, #box3, #box4{
width: 80vw;
height: 80vh;
border: double black 1vw;
border-radius: 50%;
left: 10vw;
top: 10vh;
position: absolute;
animation: box1 4s infinite linear;
}
#box2{
width: 64vw;
height: 64vh;
left: 18vw;
top: 18vh;
animation: box2 6s infinite linear;
}
#box3{
width: 51.2vw;
height: 51.2vh;
left: 24.4vw;
top: 24.4vh;
animation: box3 8s infinite linear;
}
#box4{
width: 40.96vw;
height: 40.96vh;
left: 29.52vw;
top: 29.52vh;
animation: box4 2s infinite linear;
}
#hole{
border-radius: 50%;
background: black;
width: 1vw;
height: 1vw;
position: relative;
}
</style>
<head>
<title>circles</title>
</head>
<body>
<div id="box1">
</div>
<div id="box2">
</div>
<div id="box3">
</div>
<div id="box4">
</div>
<div id="cir1">
</div>
<div id="cir2">
</div>
<div id="cir3">
</div>
</body>
</html>