The code of Loading in Html with 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 Animation</title>
    <style>
        *{
            margin0;
            padding0;
        }
        section{
            height100vh;
            width100%;
            background-color#000;
        }
        .main{
            positionabsolute;
            top50%;
            left50%;
            transformtranslate(-50%,-50%);
        }
        .loading{
            border-right5px solid white;
            height175px;
            width175px;
            border-radius50%;
            animation: loading 3s linear infinite;

        }
        @keyframes loading {
            to{
                transformrotate(0deg);
            }
            from{
                transformrotate(360deg);
            }
        }
        @keyframes size {
            0%{
                font-size2rem;
            }
            25%{
                font-size2.2rem;
            }
            50%{
                font-size2.4rem;
            }
            75%{
                font-size2.2rem;
            }
            100%{
                font-size2rem;
            }
        }
        .main h1{
            colorwhite;
            font-size2rem;
            font-weightlighter;
            animation: size 2s linear infinite;
            /* color: cyan; */
            /* text-shadow: 0px 0px 10px #fff, 0px 0px 20px #fff; */
        }
        .lhead{
            positionabsolute;
            top50%;
            left50%;
            transformtranslate(-50%,-50%);
        }
    </style>
</head>
<body>
    <section>
        <div class="main">
            <div class="lhead"><h1>loading</h1></div>
            <div class="loading"></div>
        </div>
    </section>
</body>
</html>

Comments

Popular posts from this blog

command

A Smile 😊 Codes in Html with Css