Wednesday, November 18, 2020

LOADER TUTORIAL

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Loading Effect</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <h1>Sync programming loading effect tutorial</h1>
    <div id="load-container">
        <div class="loadbox">
            <div class="loadbox1">
                <div class="loadbox2">

                </div>
            </div>
        </div>
    </div>
</body>
</html>


STYLE.CSS

*{
    margin0;
    padding0;
    box-sizingborder-box;
}

html,body{
    width100%;
    height100%;
}

body{
    background-colorrgb(44244);
}

h1{
    colorrgb(24523362);
    text-transformuppercase;
    text-aligncenter;
    font-size50px;
    margin-top40px;
}

#load-container{
    width200px;
    height200px;
    positionrelative;
    top50%;
    left50%;
    transformtranslate(-50%,-80%);
    /* background-color: greenyellow; */
}

.loadbox{
    widthcalc(100% - 16px);
    heightcalc(100% - 16px);
    border8px solid #1e3750;
    border-radius50%;
    border-top18px solid rgb(2381388);
    animation: rotate 1s linear infinite;
}

.loadbox1{
    width100%;
    height100%;
    border8px solid #1e3750;
    border-radius50%;
    border-bottom18px solid rgb(2123813);
    animation: rotate 5s linear infinite;
    /* box-shadow: 0 8px 8px 0; */
}

.loadbox2{
    width100%;
    height100%
    border8px solid #1e3750;
    border-radius50%;
    border-left18px solid rgb(24710929);
    animation: rotate 3s linear infinite;
    /* box-shadow: 0 8px 8px 0; */
}

@keyframes rotate{
    100%{
        transformrotate(360deg);
    }
}


No comments:

Post a Comment