Skip to main content

Awesome Loading Animation Of website Using HTML and CSS | Coding With Roannie

 

Awesome Loading Animation Of website Using HTML and CSS | Coding With Roannie 


    




Source Code :

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Specifity</title>
    <style>
        body{
            margin0;
            padding0;
            box-sizingborder-box;
        }
        
        section{    
            background-color#001d30;
            displayflex;
            justify-contentcenter;
            align-itemscenter;
            min-height100vh;
            animation: changebg 5s linear infinite;
            
        }
        @keyframes changebg {
            to{
                filterhue-rotate(360deg);
            }
            /* 0%{
                background-color: rgb(0, 81, 255);
            }
            20%{
                background-color: rgb(255, 0, 200);
            }
            40%{
                background-color: rgba(250, 57, 32, 0.993);
            }
            60%{
                background-color: rgb(255, 0, 76);
            }
            80%{
                background-color: rgb(255, 145, 0);
            }
            100%{
                background-color: rgb(27, 212, 58);
            } */
        }
        .loading{
             
           positionabsolute;
           width150px;
           height150px;
           backgroundlinear-gradient(to top , #001d30 40% , #51eee5);
           border-radius50%;
           animation: rotate 2s linear infinite;
        }
        @keyframes rotate{
            0%{
                transformrotate(0deg)
            }
            100%{
                transformrotate(360deg);
            }
        }
        .loading::before{
            content"";
            positionabsolute;
            background-color#001d30;
            inset: 20px 20px 0 0;
            border-radius50%;
        }
        .loading::after{
            content"";
            positionabsolute;
            top50px;
            right-8px;
            border-radius50%;
            background-color#51eee5;
            height35px;
            width35px;
            box-shadow:0 0 5px #51eee5,
                       0 0 25px  #51eee5 , 
                       0 0 50px  #51eee5 ,
                       0 0 75px  #51eee5 ;
        }

    </style>
</head>
<body>
    <section>
        <div class="loading"></div>
    </section>
</body>
</html>

subscribe me on Youtube
My Channel Link : Coding With Roannie



Thanks For Visiting