A Pen by Pawel

Thumbnail
This awesome code was written by Szczepkowski, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright Szczepkowski ©
  • HTML
  • CSS
  • JavaScript
    <div class="container">
<div class="one"></div>
<div class="one"></div>
<div class="one"></div>
<div class="one"></div>
</div>

/*Downloaded from https://www.codeseek.co/Szczepkowski/a-pen-by-pawel-PqEBdm */
    .container {
  perspective: 10000px;
}
.one {
  width: 50px;
  height: 50px;
  margin: 10px;
  background-color: blue;
  transition: transform 3s;
}
.one:hover {
  transform: rotateY(100deg);
}
.two {
  background-color: red;
}


/*Downloaded from https://www.codeseek.co/Szczepkowski/a-pen-by-pawel-PqEBdm */
    var squares = document.getElementsByClassName("one");
squares.addEventListener
function action() {
  
}
for(var i = 1; i < squares.length; i++) {
  setTimeout(function(){squares[i].className = "two"; 1000})
}

Comments