stripes

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

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

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

  
</head>

<body>

  <body>
  <div class="bo"> </div>
  <div class="box"> 
    <div class="large-square">
    <div class="left-large-square">
    <div class="trh-square"></div>
    <div class="tlh-square"></div>
    <div class="brh-square"></div>
    <div class="blh-square"></div>
    
      </div>
  </div>
</body>
  
  

</body>

</html>

/*Downloaded from https://www.codeseek.co/nen/stripes-MpJzyb */
body{
  background: white;
}
.bo{
  position: right;
  margin:auto;
  color:black;
  border-style: solid;
  border-color: black;
  border-width: 5px; 
  width: 50%;
  height: 1000px;
  
}
.box {
  position: relative;
  margin: auto;
  margin-top: 15%;
  width: 900px;
  height: 900px;
  background:none;
}

.large-square {
  top: 10%;
  width: 50%;
  height: 50%;
  border-style: solid;
  border-color: black;
  border-width: 5px; 
        -webkit-transform:
       translateY(10px)
       translateX(-10px)
     rotate(-65deg);
}

.left-large-square {
  position: absolute;
  top: 3%;
  left: 20%;
  width: 20%;
  height: 20%;
  border-style: solid;
  border-color: black;
  border-width: 10px; 
      -webkit-transform:
       translateY(10px)
       translateX(-10px)
     rotate(-45deg);
}

.trh-square {
  width: 20%;
  height: 20%;
  left: 10%;
  border-style: solid;
  border-color: black;
  border-width: 10px; 
}

.tlh-square {
  width: 50%;
  height: 10%;
  margin-top: -10%;
  margin-left: 80%;
  border-style: solid;
  border-color: black;
  border-width: 5px; 
}


.brh-square {
  width: 200%;
  height: 40%;
  margin-top: 15%;
  margin-left: -40%;
  border-style: solid;
  border-color: black;
  border-width: 8px; 
}

.blh-square {
  width: 10%;
  height: 70%;
  margin-left: -40%;
  border-style: solid;
  border-color: black;
  border-width: 18px; 
}



Comments