-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest1.html
116 lines (114 loc) · 2.83 KB
/
test1.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
*{
margin: 0;padding: 0;border: none;list-style: none;
}
body{
background: #000125;
}
.out{
width: 300px;
height: 300px;
position: absolute;
left: 50%;
top: 50%;
margin-left: -150px;
margin-top: -150px;
perspective: 8000px;
}
.out-style{
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
transform-style: preserve-3d;
transform: rotateX(-30deg) rotatez(-30deg);
animation: circle 10s linear infinite;
}
.out-style:after{
content: '';
display: block;
position: absolute;
top: -100px;
left: 50%;
width: 2px;
height: 500px;
/* background: #a500d4;*/
}
.out-style li{
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
border: solid 1px #ffffff;
border-radius: 50%;
}
.next3{
width: 200px;
height: 200px;
}
.next2{
width: 100px;
height: 100px;
}
.out-style li:nth-child(1){transform: rotateY(0); }
.out-style li:nth-child(2){transform: rotateY(36deg);}
.out-style li:nth-child(3){transform: rotateY(72deg);}
.out-style li:nth-child(4){transform: rotateY(108deg);}
.out-style li:nth-child(5){transform: rotateY(144deg);}
@keyframes circle{
0%{
/* x轴和z轴保持不变,围绕着y轴转*/
transform: rotateX(-30deg) rotateZ(-30deg) rotateY(0deg);
}
100%{
transform: rotateX(-30deg) rotateZ(-30deg) rotateY(360deg);
}
}
</style>
</head>
<body>
<div class="out">
<ul class="out-style">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</div>
<div class="out">
<ul class="out-style">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</div>
<div class="out next2">
<ul class="out-style">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</div>
<div class="out next3">
<ul class="out-style">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</div>
</body>
</html>