Menger sponge css

In this example below you will see how to do a Menger sponge css with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by wontem, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright wontem ©
  • HTML
  • CSS
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>Menger sponge css</title>
  
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css">

  
      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>

  
<input id="show" type="checkbox"/>
<label class="show" for="show">Show pen</label>
<div class="view">
  <div class="plane main">
    <div class="sponge">
      <div class="sponge">
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
      </div>
      <div class="sponge">
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
      </div>
      <div class="sponge">
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
      </div>
      <div class="sponge">
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
      </div>
      <div class="sponge">
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
      </div>
      <div class="sponge">
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
      </div>
      <div class="sponge">
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
      </div>
      <div class="sponge">
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
      </div>
      <div class="sponge">
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
      </div>
      <div class="sponge">
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
      </div>
      <div class="sponge">
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
      </div>
      <div class="sponge">
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
      </div>
      <div class="sponge">
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
      </div>
      <div class="sponge">
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
      </div>
      <div class="sponge">
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
      </div>
      <div class="sponge">
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
      </div>
      <div class="sponge">
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
      </div>
      <div class="sponge">
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
      </div>
      <div class="sponge">
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
      </div>
      <div class="sponge">
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
        <div class="cube">
          <div class="face x"></div>
          <div class="face y"></div>
          <div class="face z"></div>
        </div>
      </div>
    </div>
  </div>
</div>
  
  

</body>

</html>

/*Downloaded from https://www.codeseek.co/wontem/menger-sponge-css-MwgbVb */
html, body {
  background: #222;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.view {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  -webkit-perspective: 400;
          perspective: 400;
  display: none;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.plane {
  width: 1em;
  height: 1em;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
}
.plane.main {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  -webkit-transform: rotateX(60deg) rotateZ(150deg);
          transform: rotateX(60deg) rotateZ(150deg);
}

.cube {
  position: absolute;
  width: 1em;
  height: 1em;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
}
.cube .face, .cube .face::after {
  position: absolute;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
  width: 100%;
  height: 100%;
}
.cube .face::after {
  display: block;
  content: "";
  -webkit-transform: rotateY(180deg) translateZ(1em);
          transform: rotateY(180deg) translateZ(1em);
}
.cube .face.x {
  -webkit-transform: rotateX(90deg) translateZ(0.5em);
          transform: rotateX(90deg) translateZ(0.5em);
}
.cube .face.y {
  -webkit-transform: rotateY(90deg) translateZ(0.5em);
          transform: rotateY(90deg) translateZ(0.5em);
}
.cube .face.z {
  -webkit-transform: translateZ(0.5em);
          transform: translateZ(0.5em);
}
.cube .z, .cube .z::after {
  background: white;
}
.cube .y, .cube .y::after {
  background: #999999;
}
.cube .x, .cube .x::after {
  background: #cccccc;
}

.sponge {
  font-size: 150px;
  height: 1em;
  width: 1em;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
  position: absolute;
}
.sponge > * {
  font-size: 0.3333333333em;
}
.sponge > :nth-child(1) {
  -webkit-transform: translate3d(-1em, -1em, 1em);
          transform: translate3d(-1em, -1em, 1em);
}
.sponge > :nth-child(2) {
  -webkit-transform: translate3d(-1em, 0em, 1em);
          transform: translate3d(-1em, 0em, 1em);
}
.sponge > :nth-child(3) {
  -webkit-transform: translate3d(-1em, 1em, 1em);
          transform: translate3d(-1em, 1em, 1em);
}
.sponge > :nth-child(4) {
  -webkit-transform: translate3d(1em, -1em, 1em);
          transform: translate3d(1em, -1em, 1em);
}
.sponge > :nth-child(5) {
  -webkit-transform: translate3d(1em, 0em, 1em);
          transform: translate3d(1em, 0em, 1em);
}
.sponge > :nth-child(6) {
  -webkit-transform: translate3d(1em, 1em, 1em);
          transform: translate3d(1em, 1em, 1em);
}
.sponge > :nth-child(7) {
  -webkit-transform: translate3d(0em, -1em, 1em);
          transform: translate3d(0em, -1em, 1em);
}
.sponge > :nth-child(8) {
  -webkit-transform: translate3d(0em, 1em, 1em);
          transform: translate3d(0em, 1em, 1em);
}
.sponge > :nth-child(9) {
  -webkit-transform: translate3d(-1em, -1em, 0em);
          transform: translate3d(-1em, -1em, 0em);
}
.sponge > :nth-child(10) {
  -webkit-transform: translate3d(-1em, 1em, 0em);
          transform: translate3d(-1em, 1em, 0em);
}
.sponge > :nth-child(11) {
  -webkit-transform: translate3d(1em, -1em, 0em);
          transform: translate3d(1em, -1em, 0em);
}
.sponge > :nth-child(12) {
  -webkit-transform: translate3d(1em, 1em, 0em);
          transform: translate3d(1em, 1em, 0em);
}
.sponge > :nth-child(13) {
  -webkit-transform: translate3d(-1em, -1em, -1em);
          transform: translate3d(-1em, -1em, -1em);
}
.sponge > :nth-child(14) {
  -webkit-transform: translate3d(-1em, 0em, -1em);
          transform: translate3d(-1em, 0em, -1em);
}
.sponge > :nth-child(15) {
  -webkit-transform: translate3d(-1em, 1em, -1em);
          transform: translate3d(-1em, 1em, -1em);
}
.sponge > :nth-child(16) {
  -webkit-transform: translate3d(1em, -1em, -1em);
          transform: translate3d(1em, -1em, -1em);
}
.sponge > :nth-child(17) {
  -webkit-transform: translate3d(1em, 0em, -1em);
          transform: translate3d(1em, 0em, -1em);
}
.sponge > :nth-child(18) {
  -webkit-transform: translate3d(1em, 1em, -1em);
          transform: translate3d(1em, 1em, -1em);
}
.sponge > :nth-child(19) {
  -webkit-transform: translate3d(0em, -1em, -1em);
          transform: translate3d(0em, -1em, -1em);
}
.sponge > :nth-child(20) {
  -webkit-transform: translate3d(0em, 1em, -1em);
          transform: translate3d(0em, 1em, -1em);
}

#show {
  display: none;
}
#show:checked ~ .show {
  display: none;
}
#show:checked ~ .view {
  display: block;
}

.show {
  font-size: 1.5rem;
  font-family: sans-serif;
  color: white;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid white;
  padding: 1rem 1.5rem;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate3d(-50%, -50%, 0);
          transform: translate3d(-50%, -50%, 0);
}

@-webkit-keyframes rotate {
  from {
    -webkit-transform: rotateX(60deg) rotateZ(0deg);
            transform: rotateX(60deg) rotateZ(0deg);
  }
  to {
    -webkit-transform: rotateX(60deg) rotateZ(360deg);
            transform: rotateX(60deg) rotateZ(360deg);
  }
}

@keyframes rotate {
  from {
    -webkit-transform: rotateX(60deg) rotateZ(0deg);
            transform: rotateX(60deg) rotateZ(0deg);
  }
  to {
    -webkit-transform: rotateX(60deg) rotateZ(360deg);
            transform: rotateX(60deg) rotateZ(360deg);
  }
}

Comments