動畫-水球圖

水球圖
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
    </head>
    <body>
        <div class="wave progress-{{percent}}" style="width:90px;height:90px;">
        <!--    <div class="title">
                <div>匹配度</div>20%
            </div> -->
        </div>
    </body>
    <style type="text/css">
        .wave {
            position: relative;
            background: linear-gradient(180deg, #8BC0FF 0%, #ABD1FF);
            background: #69AEFF;
            box-shadow: 0px 1px 16rpx 0px #EEEEEE;
            opacity: 0.7;
            border-radius: 50%;
            overflow: hidden;
            z-index: 1;
        }

        /* .wave::before, */
        .wave::after {
            content: "";
            position: absolute;
            width: 200%;
            height: 200%;
            left: 50%;
            background-color: rgba(255, 255, 255, .4);
            border-radius: 45%;
            transform: translate(-50%, -70%) rotate(0);
            animation: rotate 6s linear infinite;
            z-index: 10;
        }

        .wave::after {
            border-radius: 35%;
            background-color: rgba(255, 255, 255, .9);
            transform: translate(-50%, -70%) rotate(0);
            animation: rotate 10s linear -5s infinite;
            z-index: 20;
        }

        @keyframes rotate {
            50% {
                transform: translate(-50%, -73%) rotate(180deg);
            }

            100% {
                transform: translate(-50%, -70%) rotate(360deg);
            }
        }

        .title {
            color: #005BC7;
            font-size: 20rpx;
            font-weight: bold;
            position: absolute;
            top: 20rpx;
            width: 100%;
            left: 0;
            bottom: 0;
            right: 0;
            z-index: 30;
            text-align: center;
        }
    </style>
</html>

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容