Skip to main content

Make Awesome Loading Animation Using HTML and CSS | Different Colors

 

 Make Awesome Loading Animation Using HTML and CSS | Different Colors



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>Document</title>
    <style>
        body{
            margin0;
            padding0;
            box-sizingborder-box;
            background-colorrgb(242421);
            displayflex;
            justify-contentcenter;
            align-itemscenter;
            min-height100vh;
            font-familyVerdana, Geneva, Tahomasans-serif;
            font-sizelarger;
            font-weight600;
        }
        div{
            coloraliceblue;
            margin15px;
            /* padding: 20px; */
        }
        
        .container{
            
            positionrelative;
            width100px;
            height100px;
            border-radius50%;
            background:linear-gradient(45degtransparent , transparent 40%#05f7a6);
            animation: animate 2s linear infinite;
            
        }
        .container:before{
            content'';
            positionabsolute;
            top6px;
            left6px;
            right6px;
            bottom6px;
            background-color:rgb(242421);
            border-radius50%;
            z-index1000;
        }
        .container:after{
            content'';
            positionabsolute;
            top0px;
            left0px;
            right0px;
            bottom0px;
            background-color:rgb(242421);
            border-radius50%;
            background:linear-gradient(45degtransparent , transparent 40%#05f7a6);
            z-index1000;
            z-index1;
            filterblur(40px);
            
        }
        @keyframes animate{
            0%{
               transform:  rotate(0deg);
               filterhue-rotate(0deg);
            }
            100%{
                transform:  rotate(360deg);
                filterhue-rotate(360deg);
            }
        }
    </style>
</head>
<body>
    <!-- <img src="../Downloads/NicePng_apple-logo-png_80015.png" width="90px" height="auto " alt=""> -->
    <div class="container"> </div>
    <div class="lo">Loading...</div>
</body>
</html>






YOUTUBE VIDEO FOR THIS CODE :




IF THIS IS HELPFUL TO YOU PLEASE SUBSCRIBE ME AT MY YOU TUBE CHANNEL

CODING WITH ROANNIE