Loading Design with HTML+CSS

 Loading Design:-

CODE:-
<!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>
        *
        {
            margin0;
            padding0;
            box-sizingborder-box;
        }
        section{
            displayflex;
            justify-contentcenter;
            align-itemscenter;
            min-height100vh;
            background#042104;
            animation: animateBg 10s linear infinite;
        }
        @keyframes animateBg{
            0%{
                filter:hue-rotate(0deg);
            }
            100%{
                filter:hue-rotate(360deg);
            }
        }
        section .loader{
            positionrelative;
            width120px;
            height120px;
        }
        section .loader span {
            positionabsolute;
            top0;
            left0;
            width100%;
            height100%;
            transformrotate(calc(18deg * var(--i)));
        }
        section .loader span::before {
            content'';
            positionabsolute;
            top0;
            left0;
            width15px;
            height15px;
            border-radius50%;
            background#00ff00;
            box-shadow0 0 10px #00ff0a,
                        0 0 20px #00ff0a,
                        0 0 40px #00ff0a,
                        0 0 60px #00ff0a
                        0 0 80px #00ff0a,
                        0 0 100px #00ff0a;
            animation: animate 2s linear infinite;
            animation-delaycalc(0.1s * var(--i));
        }
        @keyframes animate{
            0%{
                transformscale(1);
            }
            80%,100%{
                transformscale(0);
            }
        }
    </style>
</head>
<body>
    <section>
        <div class="loader">
            <span style="--i:1;"></span>
            <span style="--i:2;"></span>
            <span style="--i:3;"></span>
            <span style="--i:4;"></span>
            <span style="--i:5;"></span>
            <span style="--i:6;"></span>
            <span style="--i:7;"></span>
            <span style="--i:8;"></span>
            <span style="--i:9;"></span>
            <span style="--i:10;"></span>
            <span style="--i:11;"></span>
            <span style="--i:12;"></span>
            <span style="--i:13;"></span>
            <span style="--i:14;"></span>
            <span style="--i:15;"></span>
            <span style="--i:16;"></span>
            <span style="--i:17;"></span>
            <span style="--i:18;"></span>
            <span style="--i:19;"></span>
            <span style="--i:20;"></span>
        </div>
    </section>
    </div>
</body>
</html>

OUTPUT:-


Comments

Popular Posts