c3動畫 地圖 重要信息閃爍

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>

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章