<!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>
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
background-color: rgb(45, 45, 45);
}
.map{
position: relative;
width: 1400px;
height: 830px;
background-image: url(./img/QX3OPNW5qY.png);
background-repeat: no-repeat;
background-size: 100%;
margin: 0 auto;
}
.bj{
position: absolute;
top: 15px;
left: 10px;
font-size: 10px;
}
.Gambia{
position: absolute;
top: 15px;
left: 10px;
font-size: 10px;
color:rgb(255, 153, 153)
}
.Island{
position: absolute;
top: 15px;
left: 10px;
font-size: 10px;
}
/* 城市1 */
.city1{
position: absolute;
top: 370px;
right: 403px;
color: aliceblue;
}
.center1{
width: 5px;
height: 5px;
background-color: rgb(255, 255, 255);
box-shadow: 0 0 12px 2px #fff;
border-radius: 50%;
}
.city1 div[class^="bw"]{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
width: 5px;
height: 5px;
box-shadow: 0 0 7px #fff;
border-radius: 50%;
animation: scla 3s linear infinite;
}
.map .city1 div.bw2{
animation-delay: 1s;
}
.map .city1 div.bw3{
animation-delay: 2s;
}
/* 城市2 */
.city2{
position: absolute;
top: 500px;
right: 703px;
color: aliceblue;
}
.center2{
width: 5px;
height: 5px;
background-color: rgb(255, 255, 255);
box-shadow: 0 0 12px 2px #fff;
border-radius: 50%;
}
.city2 div[class^="bw"]{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
width: 5px;
height: 5px;
box-shadow: 0 0 7px rgb(255, 149, 149);
border-radius: 50%;
animation: scla1 3s linear infinite;
}
.map .city2 div.bw2{
animation-delay: 0.75s;
}
.map .city2 div.bw3{
animation-delay: 1.5s;
}
.map .city2 div.bw4{
animation-delay: 2.25s;
}
/* 城市3 */
.city3{
position: absolute;
top: 200px;
right: 1003px;
color: aliceblue;
}
.center3{
width: 5px;
height: 5px;
background-color: rgb(255, 255, 255);
box-shadow: 0 0 12px 2px #fff;
border-radius: 50%;
}
/* 属性选择器 正则表达式筛选bw开头类名 */
.city3 div[class^="bw"]{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
width: 5px;
height: 5px;
box-shadow: 0 0 7px #fff;
border-radius: 50%;
animation: scla 3s linear infinite;
}
.map .city3 div.bw2{
animation-delay: 1s;
}
.map .city3 div.bw3{
animation-delay: 2s;
}
/* @keyframes关键帧动画 */
@keyframes scla{
0% {
opacity: 1;
}
50% {
width: 105px;
height: 105px;
opacity: 0.5;
}
100% {
width: 150px;
height: 150px;
opacity: 0;
}
}
@keyframes scla1{
0% {
opacity: 1;
}
50% {
width: 285px;
height: 285px;
opacity: 0.5;
}
100% {
width: 330px;
height: 330px;
opacity: 0;
}
}
</style>
</head>
<body>
<div class="map">
<div class="city1">
<div class="center1"></div>
<p class="bj">Beijing</p>
<div class="bw1"></div>
<div class="bw2"></div>
<div class="bw3"></div>
</div>
<div class="city2">
<div class="center2"></div>
<p class="Gambia">Gambia</p>
<div class="bw1"></div>
<div class="bw2"></div>
<div class="bw3"></div>
<div class="bw4"></div>
</div>
<div class="city3">
<div class="center3"></div>
<p class="Island">Island</p>
<div class="bw1"></div>
<div class="bw2"></div>
<div class="bw3"></div>
</div>
</div>
</body>
</html>
没有合适的资源?快使用搜索试试~ 我知道了~
资源详情
资源评论
资源推荐
收起资源包目录
大数据地图波动.rar (2个子文件)
demo
img
QX3OPNW5qY.png 54KB
demo.html 5KB
共 2 条
- 1
卡卡西最近怎么样
- 粉丝: 2w+
- 资源: 13
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0