Website Preloader

Home / Web Code Snippet / Website Preloader

Website Preloader


                                                      https://youtube.com/shorts/uMWL_6L-UvA?si=JJpij-UlHfQFBqNz

HTML CODE :-
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title></title>
</head>
<body>
    <div class="container">
        <div class="loading"></div>
        <div class="loading"></div>
        <div class="loading"></div>
    </div>
</body>
</html>
CSS CODE :-
       body{
            margin: 0px;
            padding: 0px;
            box-sizing: border-box;
            min-height: 100vh;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: black;
        }
        .container{
            position: relative;
            display: flex;
            justify-content: center;
            align-content: center;
            margin-top: -80px;
        }
        .loading{
            position: absolute;
            width: 120px;
            height: 120px;
            border: 0px solid black;
            border-radius: 50%;
        }
        .loading:nth-child(1){
            border-bottom-width: 8px;
            border-color:cyan;
            animation: animate1 2s linear infinite;
            filter: drop-shadow(0px 0px 10px cyan);
        }
        @keyframes animate1{
            0%{
                transform: rotateX(40deg) rotateY(-50deg) rotateZ(0deg);
            }
            100%{
                transform: rotateX(40deg) rotateY(-50deg) rotateZ(360deg);
            }
        }
        .loading:nth-child(2){
            border-right-width: 8px;
            border-color:lightpink;
            animation: animate2 2s linear infinite;
            filter: drop-shadow(0px 0px 10px lightpink);
        }
        @keyframes animate2{
            0%{
                transform: rotateX(55deg) rotateY(15deg) rotateZ(0deg);
            }
            100%{
                transform: rotateX(55deg) rotateY(15deg) rotateZ(360deg);
            }
        }
        .loading:nth-child(3){
            border-top-width: 8px;
            border-color: lightgreen;
            animation: animate3 2s linear infinite;
            filter: drop-shadow(0px 0px 10px lightgreen);
        }
        @keyframes animate3{
            0%{
                transform: rotateX(40deg) rotateY(60deg) rotateZ(0deg);
            }
            100%{
                transform: rotateX(40deg) rotateY(60deg) rotateZ(360deg);
            }
        }