夜间模式CodeSnippetStyle:
日间模式CodeSnippetStyle:

0%


online.visual-paradigm站点加载动画

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
</head>

<body>
    <style>
        body {
            margin: 0;
            padding: 0;
            background-color: #000;
        }
    </style>
    <style>
        .container {
            /* display: flex; */
            /* justify-content: center; */
        }
        
        .loading {
            width: 100%;
            position: relative;
            margin-top: 20%;
        }
        
        .loading-box {
            width: 200px;
            /* border: 1px solid #f40; */
            transform: rotate(45deg);
            position: relative;
            left: calc(50% - 100px);
            /* left: 50%; */
            height: 200px;
        }
        
        .object {
            width: 20px;
            height: 20px;
            background-color: aquamarine;
            position: absolute;
            box-shadow: 0px 0px 20px 1px cyan;
        }
        
        #one {
            animation: object_one 2s infinite;
            animation-delay: 0.1s;
        }
        
        #two {
            animation: object_two 2s infinite;
            animation-delay: 0.2s;
        }
        
        #three {
            animation: object_three 2s infinite;
            animation-delay: 0.3s;
        }
        
        #four {
            animation: object_four 2s infinite;
            animation-delay: 0.4s;
        }
        
        #five {
            animation: object_five 2s infinite;
            animation-delay: 0.5s;
        }
        
        #six {
            animation: object_six 2s infinite;
            animation-delay: 0.6s;
        }
        
        #seven {
            animation: object_seven 2s infinite;
            animation-delay: 0.7s;
        }
        
        #eight {
            animation: object_eight 2s infinite;
            animation-delay: 0.8s;
        }
        
        #big-center {
            animation: object_big-center 2s infinite;
            animation-delay: 0.5s;
        }
        
        @keyframes object_big-center {
            50% {
                transform: scale(2.5);
            }
        }
        
        @keyframes object_eight {
            50% {
                transform: translate(-65px, 0) scale(1.4);
            }
        }
        
        @keyframes object_seven {
            50% {
                transform: translate(-65px, 65px) scale(1.4);
            }
        }
        
        @keyframes object_six {
            50% {
                transform: translate(0, 65px) scale(1.4);
            }
        }
        
        @keyframes object_five {
            50% {
                transform: translate(65px, 65px) scale(1.4);
            }
        }
        
        @keyframes object_four {
            50% {
                transform: translate(65px, 0) scale(1.4);
            }
        }
        
        @keyframes object_three {
            50% {
                transform: translate(65px, -65px) scale(1.4);
            }
        }
        
        @keyframes object_two {
            50% {
                transform: translate(0px, -65px) scale(1.4);
            }
        }
        
        @keyframes object_one {
            50% {
                transform: translate(-65px, -65px) scale(1.4);
            }
        }
    </style>
    <style>
        .description {
            display: flex;
            justify-content: center;
            text-shadow: 0px 0px 3px white;
            color: #fff;
            font-size: 24px;
        }
        
        .letter:nth-child(1) {
            -webkit-animation: fade 4s infinite 200ms;
            animation: fade 4s infinite 200ms;
        }
        
        .letter:nth-child(2) {
            -webkit-animation: fade 4s infinite 400ms;
            animation: fade 4s infinite 400ms;
        }
        
        .letter:nth-child(3) {
            -webkit-animation: fade 4s infinite 600ms;
            animation: fade 4s infinite 600ms;
        }
        
        .letter:nth-child(4) {
            -webkit-animation: fade 4s infinite 800ms;
            animation: fade 4s infinite 800ms;
        }
        
        .letter:nth-child(5) {
            -webkit-animation: fade 4s infinite 1000ms;
            animation: fade 4s infinite 1000ms;
        }
        
        .letter:nth-child(6) {
            -webkit-animation: fade 4s infinite 1200ms;
            animation: fade 4s infinite 1200ms;
        }
        
        .letter:nth-child(7) {
            -webkit-animation: fade 4s infinite 1400ms;
            animation: fade 4s infinite 1400ms;
        }
        
        .letter:nth-child(8) {
            -webkit-animation: fade 4s infinite 1600ms;
            animation: fade 4s infinite 1600ms;
        }
        
        .letter:nth-child(9) {
            -webkit-animation: fade 4s infinite 1800ms;
            animation: fade 4s infinite 1800ms;
        }
        
        .letter:nth-child(10) {
            -webkit-animation: fade 4s infinite 2000ms;
            animation: fade 4s infinite 2000ms;
        }
        
        .letter:nth-child(11) {
            -webkit-animation: fade 4s infinite 2200ms;
            animation: fade 4s infinite 2200ms;
        }
        
        @-webkit-keyframes fade {
            50% {
                opacity: 0.02;
            }
        }
        
        @keyframes fade {
            50% {
                opacity: 0.02;
            }
        }
    </style>
    <section>
        <div class="container">
            <div class="loading">
                <div class="loading-box">
                    <div class="object" id="one"></div>
                    <div class="object" id="two"></div>
                    <div class="object" id="three"></div>
                    <div class="object" id="four"></div>
                    <div class="object" id="five"></div>
                    <div class="object" id="six"></div>
                    <div class="object" id="seven"></div>
                    <div class="object" id="eight"></div>
                    <div class="object" id="big-center"></div>
                </div>
            </div>

            <div class="description">
                <div class="loading-text">
                    <span class="letter">J</span>
                    <span class="letter">a</span>
                    <span class="letter">y</span>
                    <span class="letter">c</span>
                    <span class="letter">e</span>
                    <span class="letter">t</span>
                    <span class="letter">h</span>
                    <span class="letter">a</span>
                    <span class="letter">n</span>
                    <span class="letter">k</span>
                    <span class="letter">s</span>
                </div>
            </div>
        </div>
    </section>
</body>

</html>
posted @ 2020-07-24 16:05  暮冬有八  阅读(204)  评论(0编辑  收藏  举报
BACK TO TOP

😀迷海无灯听船行。Github WeChat