-
Notifications
You must be signed in to change notification settings - Fork 0
/
spinner3.html
169 lines (145 loc) · 3.68 KB
/
spinner3.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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<!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;
}
.yinYang{
position: relative;
width: 500px;
height: 500px;
}
.spin {
animation: spin 10s infinite;
animation-timing-function: linear;
}
.spin2 {
animation: spin2 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 {
height: 100%;
width: 100%;
/* display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;*/
}
.subBox {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
display: flex;
justify-content: space-between;
flex-direction: column;
}
.half {
background: linear-gradient(90deg, white 50%, black 50%);
}
.mini {
height: 33.6666666666%;
width: 33.6666666666%;
/* position: absolute;
top: 50%;
transform: translateY(-50%);*/
}
/*
.mini.left {
left: 0;
}
.mini.right {
right: 0;
}*/
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(-360deg);
}
}
@keyframes spin2 {
from {
transform: rotate(90deg);
}
to {
transform: rotate(-270deg);
}
}
</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="yinYang">
<div class="sphere big spin half">
<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="subBox spin2">
<div class="white sphere half mini right 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 mini left 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>