Page Flipping Preloader

<!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>Page Loading Animation</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        body {
            background-color: #ecf0f1;
        }

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

        .book {
            width: 150px;
            border-bottom: #a04901 solid 2px;
            border-top: #ffa600 solid 4px;
            position: relative;
        }

        .book::before {
            position: absolute;
            content: '';
            width: 50%;
            left: 0;
            bottom: 1px;
            border-bottom: #ffa600 solid 2px;
            transform: rotate(45deg);
            transform-origin: right center;
            animation: loading 1s ease-in-out infinite;
        }

        .book::after {
            position: absolute;
            content: '';
            width: 50%;
            left: 0;
            bottom: 1px;
            border-bottom: #ffa600 solid 2px;
            transform: rotate(145deg);
            transform-origin: right center;
            animation: loading 1.2s ease-in-out infinite;
        }

        @keyframes loading {
            from {
                transform: rotate(180deg);
            }

            to {
                transform: rotate(0deg);
            }
        }
        
    </style>
</head>
<body>
    <section>
        <div class="book"></div>
    </section>
</body>
</html>
                                Copy Code
                            

Result Screenshot(s)

Page Flipping PreloaderWorking Sample0