Folding Paper Effect

<!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>Folding Paper Effect</title>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Lato&display=swap" rel="stylesheet"> 
    <style>
        * {
            margin: 0;
            padding: 0;
            font-family: 'Lato', sans-serif;
        }

        body { background-color: #292929; }

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

        ul {
            list-style: none;
            display: flex;
            justify-content: center;
        }

        ul li {
            width: 100px;
            height: 100px;
            background-color: #fff;
            color: #858585;
            font-size: 50px;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 40px 50px rgba(0,0,0,0.2);
            transition: transform 0.3s ease-in-out;
        }

        ul li:first-child {
            border-radius: 5px 0 0 5px;
        }

        ul li:last-child {
            border-radius: 0 5px 5px 0;
        }

        ul:hover li:nth-child(odd) {
            transform: skewY(15deg);
        }

        ul:hover li:nth-child(even) {
            transform: skewY(-15deg);
        }
        
    </style>
</head>
<body>
    <section>
        <ul>
            <li>G</li>
            <li>E</li>
            <li>E</li>
            <li>K</li>
            <li>B</li>
            <li>O</li>
            <li>O</li>
            <li>T</li>
            <li>S</li>
        </ul>
    </section>
</body>
</html>
                                Copy Code
                            

Result Screenshot(s)

Folding Paper EffectWorking Sample0