-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
64 lines (63 loc) · 1.33 KB
/
demo.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<div class="out">
<div class="center circle">
<div class="item item1 circle">文字 111</div>
<div class="item item2 circle">文字 22</div>
</div>
</div>
<style>
@keyframes circle {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@keyframes fancircle {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(-360deg);
}
}
.out {
margin: 400px;
}
.circle {
border-radius: 50%;
}
.item1 {
left: 0;
top: -80px;
animation: fancircle 10s linear infinite;
}
.item2 {
left: -80px;
text-align: center;
animation: fancircle 10s linear infinite;
}
.item {
width: 50px;
height: 50px;
background: lightblue;
position: absolute;
}
.center {
position: relative;
width: 100px;
height: 100px;
background: orange;
animation: circle 10s linear infinite;
}
</style>
</body>
</html>