<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
@keyframes pulse {
0% {}
70% {
width: 40px;
height: 40px;
opacity: 1;
}
100% {
width: 50px;
height: 50px;
opacity: 0;
}
}
body {
background-color: #333;
}
.map {
position: relative;
width: 750px;
height: 610px;
background: url(./imgs/map1.jpg) no-repeat;
background-size: 750px auto;
margin: 10px auto;
}
.city {
position: absolute;
top: 123px;
right: 581px;
color: #fff;
}
.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;
border-radius: 50%;
box-shadow: 0 0 12px #009dfd;
animation: pulse 2.4s linear infinite;
}
.city div.pulse2 {
animation-delay: 0.8s;
}
.city div.pulse3 {
animation-delay: 1.6s;
}
.city::after {
top: 10px;
left: 20px;
position: absolute;
width: 50px;
content: '内蒙古';
font-size: 12px;
}
</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>