c3动画 地图 重要信息闪烁
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.box {
width: 10px;
height: 10px;
background-color: blue;
border-radius: 50%;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
.big {
margin: 50px auto;
width: 100px;
height: 100px;
border: 1px solid blue;
border-radius: 50%;
position: relative;
}
.quan {
width: 60px;
height: 60px;
border: 1px solid red;
position: absolute;
border-radius: 50%;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
animation: dong 1s infinite;
}
@keyframes dong {
from {
opacity: 0;
transform: translate(-50%, -50%) scale(0);
}
to {
opacity: 1;
box-shadow: 0 0 20px blue;
transform: translate(-50%, -50%) scale(1.2);
}
}
</style>
</head>
<body>
<div class="big">
<div class="quan"></div>
<div class="box"></div>
</div>
</body>
</html>