Wed Aug 24 2022

Bouncing Bar Preloader

CSS3536 views

File Name: bouncing-bar-preloader.html

<!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>Bouncing Bar Preloader</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        body {
            background-color: #292929;
        }

        section {
            width: 100%;
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .loader {
            position: relative;
            width: 40px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .loader span {
            width: 5px;
            height: 25px;
            background-color: #fff;
            animation: loading 0.5s infinite linear;
            animation-delay: calc(0.2s * var(--i));
        }

        @keyframes loading {
            0%, 100% {
                transform: translateY(-100%);
                background-color: #fc6f15;
            }

            50% {
                transform: translateY(100%);
                background-color: #fff;
            }
            
        }

        
    </style>
</head>
<body>
    <section>
        <div class="loader">
            <span style="--i:0"></span>
            <span style="--i:3"></span>
            <span style="--i:6"></span>
        </div>
    </section>
</body>
</html>

Result Screenshot(s)

Bouncing Bar PreloaderWorking Sample0

We use cookies to improve your experience on our site and to show you personalised advertising. Please read our cookie policy and privacy policy.