Loading Animation With HTML & CSS

                    

                



<!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>Loading</title>
    <style>
        body{
            padding:0;
            margin:0;
            displayflex;
            width:100%;
            height:100vh;
            justify-contentcenter;
            align-itemscenter;
            background-colorblack;
        }
        .container{
            width:30%;
            height:5%;
           
            border:2px solid rgb(02550);
            padding:3px 2px;
            
        }
        .fluid{
            width:100%;
            height:100%;
            background-color:rgb(02550);
            animation: load 10s linear forwards;
            box-shadow0px 0px 20px rgb(02550),
                          0px 0px 50px rgb(02550);

        }
        @keyframes load {
            from{
                width:0%;
            }
            to{
                width:100%;
            }
            
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="fluid"></div>
    </div>

    
</body>
</html>

Post a Comment

Previous Post Next Post