Repository navigation
Expand file tree
/
Copy pathHeatmap.html
More file actions
81 lines (81 loc) · 1.77 KB
/
Copy pathHeatmap.html
File metadata and controls
81 lines (81 loc) · 1.77 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>热点图</title>
<style>
body {
background-color: #333333;
}
.map {
position: relative;
height: 600px;
width: 850px;
margin: 200px auto;
background: url("upload/map.png") no-repeat;
}
.city {
position: absolute;
top: 228px;
right: 295px;
color: white;
}
.dotted {
width: 8px;
height: 8px;
background-color: #09f;
border-radius: 50%;
}
.city div[class^="pulse"] {
/* 关键点,定位到重叠 */
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 8px;
height: 8px;
box-shadow: 0 0 12px #09d;
border-radius: 50%;
animation: pulse 2s linear infinite;
}
.city div.pulse2 {
animation-delay: 0.4s;
}
.city div.pulse3 {
animation-delay: 0.8s;
}
@keyframes pulse {
0% {
}
40% {
/* 不要用scale,效果不好看 */
/* transform: scale(2); */
width: 20px;
height: 20px;
opacity: 1;
}
70% {
width: 40px;
height: 40px;
opacity: 1;
}
100% {
width: 60px;
height: 60px;
opacity: 0;
}
}
</style>
</head>
<body>
<div class="map">
<div class="city">
<div class="dotted"></div>
<div class="pulse1"></div>
<div class="pulse2"></div>
<div class="pulse3"></div>
</div>
</div>
</body>
</html>