Isometric Grid Idea

In this example below you will see how to do a Isometric Grid Idea with some HTML / CSS and Javascript

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

<head>
  <meta charset="UTF-8">
  <title>Isometric Grid Idea</title>
  
  
  
      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>

  <div class="x-axis"></div>
<div class="y-axis"></div>
<div class="z-axis"></div>
<div class="center-xy">
  <div class="shape1">
  </div>
</div>
  
  

</body>

</html>

/*Downloaded from https://www.codeseek.co/clemens/isometric-grid-idea-bYrqXN */
.x-axis {
  width: 100%;
  height: 1px;
  background: red;
  position: absolute;
  transform: rotateX(60deg) rotateY(0deg) rotateZ(-45deg);
  top:50%;
  left:0;
  opacity:0.1;
}
.y-axis {
  width: 100%;
  height: 1px;
  background: red;
  position: absolute;
  transform: rotateX(60deg) rotateY(0deg) rotateZ(45deg);
  top:50%;
  left:0;
  opacity:0.1;
}
.z-axis {
  width: 1px;
  height: 100%;
  background: red;
  position: absolute;
  top:0;
  left: 50%;
  opacity:0.1;
}
.center-xy {
  background-color: #49b293;
    width: 200px;
    height: 160px;
    transform: rotateX(60deg) rotateY(0deg) rotateZ(-45deg) translateX(20%) translateY(-115%);
    opacity:0.5;
    position: absolute;
    top:50%;
    left: 50%;
    color: #fff;
    font-family: Arial;
    display: table;
}
.shape1 {
  width: 120px;
  height: 400px;
  border: 1px solid black;
  position: absolute;
  top:50%;
  left:50%;
  transform: translateX(-50%) translateY(-50%);
}

Comments