simple tesseract (hypercube) in CSS

In this example below you will see how to do a simple tesseract (hypercube) in CSS with some HTML / CSS and Javascript

basic concept for a tesseract.A tesseract is a cube with a 4th dimension

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

<head>
  <meta charset="UTF-8">
  <title>simple tesseract (hypercube) in CSS</title>
  
  
  
  
  
</head>

<body>

  
<div class="pane">
  <div class="tesseract">
    <div class="cube">
      <div class="side">
        <div class="frustum">
          <div class="side"> </div>
          <div class="side"> </div>
          <div class="side"> </div>
          <div class="side"> </div>
        </div>
      </div>
      <div class="side">
        <div class="frustum">
          <div class="side"> </div>
          <div class="side"> </div>
          <div class="side"> </div>
          <div class="side"> </div>
        </div>
      </div>
      <div class="side">
        <div class="frustum">
          <div class="side"> </div>
          <div class="side"> </div>
          <div class="side"> </div>
          <div class="side"> </div>
        </div>
      </div>
      <div class="side">
        <div class="frustum">
          <div class="side"> </div>
          <div class="side"> </div>
          <div class="side"> </div>
          <div class="side"> </div>
        </div>
      </div>
      <div class="side">
        <div class="frustum">
          <div class="side"> </div>
          <div class="side"> </div>
          <div class="side"> </div>
          <div class="side"> </div>
        </div>
      </div>
      <div class="side">
        <div class="frustum">
          <div class="side"> </div>
          <div class="side"> </div>
          <div class="side"> </div>
          <div class="side"> </div>
        </div>
      </div>
    </div>
  </div>
</div>
  
  

</body>

</html>

Comments