-
Notifications
You must be signed in to change notification settings - Fork 2
/
类似战网的动画.html
97 lines (82 loc) · 1.83 KB
/
类似战网的动画.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
body {
margin: 0;
padding: 0;
min-height: 100vh;
background-color: #333;
display: flex;
justify-content: center;
align-items: center;
box-sizing: border-box;
}
.sward {
width: 64px;
height: 64px;
position: relative;
border-radius: 50%;
}
.sward span {
position: absolute;
width: 100%;
height: 100%;
border-radius: 50%;
}
.sward :first-child {
left: 0%;
top: 0%;
border-bottom: 4px solid #459AD0;
animation: sward-one 1s linear infinite;
}
.sward :nth-child(2) {
right: 0%;
top: 0%;
animation: sward-two 1s linear infinite;
border-right: 4px solid #459AD0;
}
.sward :last-child {
right: 0%;
bottom: 0%;
animation: sward-three 1s linear infinite;
border-top: 4px solid #459AD0;
}
@keyframes sward-one {
0% {
transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
}
100% {
transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
}
}
@keyframes sward-two {
0% {
transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
}
100% {
transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
}
}
@keyframes sward-three {
0% {
transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
}
100% {
transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
}
}
</style>
</head>
<body>
<div class="sward">
<span></span>
<span></span>
<span></span>
</div>
</body>
</html>