-
Notifications
You must be signed in to change notification settings - Fork 0
/
spinner2.html
112 lines (100 loc) · 2.68 KB
/
spinner2.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
112
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
.menu{
position: fixed;
top:0;
left:0;
}
body {
background-color: gray;
height: 100vh;
width: 100vw;
}
.spin {
animation: spin 10s infinite;
animation-timing-function: linear;
}
.flexCenter {
display: flex;
justify-content: center;
align-items: center;
}
.white {
background-color: white;
}
.black {
background-color: black;
}
.sphere {
margin: 0 auto;
border-radius: 50%;
height: 50%;
width: 50%;
}
.big {
width: 500px;
height: 500px;
}
.half {
background: linear-gradient(90deg, white 50%, black 50%);
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(-360deg);
}
}
</style>
</head>
<body class="flexCenter">
<div class="menu">
<a href='./index.html'>Spinner1</a>
<a href='./spinner2.html'>Spinner2</a>
<a href='./spinner3.html'>Spinner3</a>
<a href='./spinner4.html'>Spinner4</a>
</div>
<div class="sphere big spin half">
<div class="white sphere half spin ">
<div class="white sphere half spin ">
<div class="black sphere flexCenter">
<div class="sphere white"></div>
</div>
<div class="white sphere flexCenter">
<div class="sphere black"></div>
</div>
</div>
<div class="black sphere half spin">
<div class="black sphere flexCenter">
<div class="sphere white"></div>
</div>
<div class="white sphere flexCenter">
<div class="sphere black"></div>
</div>
</div>
</div>
<div class="black sphere half spin ">
<div class="white sphere half spin">
<div class="black sphere flexCenter">
<div class="sphere white"></div>
</div>
<div class="white sphere flexCenter">
<div class="sphere black"></div>
</div>
</div>
<div class="black sphere half spin ">
<div class="black sphere flexCenter">
<div class="sphere white"></div>
</div>
<div class="white sphere flexCenter">
<div class="sphere black"></div>
</div>
</div>
</div>
</div>
</body>
</html>