HTML


<div class="square">
  <span class="l1"></span>
  <span class="l2"></span>
  <span class="l3"></span>
  <span class="l4"></span>
</div>


CSS


/* #1st by: Joel Rodelo > edit by: webbeloz
** -webkit & Firefox ( lab )
*/
.square {
  background: #002b36;
  display: block;
  width: 200px;
  height: 200px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -110px auto auto -110px;
  overflow: hidden;
  border: 10px solid #eee;
	border-radius:3px;
}

.l1,.l2,.l3,.l4 {
  position: absolute;
  background: transparent;
  width: 0px;
  height: 0px;

  -webkit-animation-duration: .4s;
  -webkit-animation-iteration-count:1;
  -webkit-animation-timing-function: ease-in-out;
  -webkit-animation-fill-mode: forwards;
	  animation-duration: .4s;
  animation-iteration-count:1;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}


.l1 {
  left: 0;
  bottom: 0;
  height: 200px;
  width: 5px;
  -webkit-animation-name: l1;
  -webkit-animation-delay: 0s;
	  animation-name: l1;
  animation-delay: 0s;
}

.l2 {
  top: 0;
  left: 0;
  width: 200px;
  height: 5px;
  -webkit-animation-name: l2;
  -webkit-animation-delay: .4s;
	  animation-name: l2;
  animation-delay: .4s;
}

.l3 {
  right: 0;
  top: 0;
  height: 200px;
  width: 5px;
  -webkit-animation-name: l3;
  -webkit-animation-delay: .8s;
	  animation-name: l3;
  animation-delay: .8s;
}

.l4 {
  bottom: 0;
  right: 0;
  width: 200px;
  height: 5px;
  -webkit-animation-name: l4;
  -webkit-animation-delay: 1.2s;
	  animation-name: l4;
  animation-delay: 1.2s;
}
@-webkit-keyframes l1 {
  0%    { height: 0; background: orange; }
  100%  { height: 200px; background: orange; }
}

@-webkit-keyframes l2 {
  0%    { width: 0; background: orange; }
  100%  { width: 200px; background: orange; }
}

@-webkit-keyframes l3 {
  0%    { height: 0; background: orange; }
  100%  { height: 200px; background: orange; }
}

@-webkit-keyframes l4 {
  0%    { width: 0; background: orange; }
  100%  { width: 200px; background: orange; }
}

@-webkit-keyframes l4 {
  0%    { width: 0; background: orange; }
  100%  { width: 200px; background: orange; }
}


@keyframes l1 {
  0%    { height: 0; background: orange; }
  100%  { height: 200px; background: orange; }
}

@keyframes l2 {
  0%    { width: 0; background: orange; }
  100%  { width: 200px; background: orange; }
}

@keyframes l3 {
  0%    { height: 0; background: orange; }
  100%  { height: 200px; background: orange; }
}

@keyframes l4 {
  0%    { width: 0; background: orange; }
  100%  { width: 200px; background: orange; }
}

@keyframes l4 {
  0%    { width: 0; background: orange; }
  100%  { width: 200px; background: orange; }
}


JS




CodePlay Playground as you play with the keyboard:

Console

The CodePlay Code Box Editors Playground is very simple to use, anyone can directly interact with a minimum of knowledge of HTML experience, live an idea or a project. We believe that only 5% of the developers has the full capacity and knowledge of each key on the keyboard. Therefore we decided to put together a single command from the Key [Esc] == 27.
For every need and every situation the keyboard [Esc] key fixes and puts in place the Original Initial Code Box Editors.
All this without losing the contents of each Box Editors .
!Enjoy your CodePlay.


CodePlay Playground is a project based on WordPress entirely revised to have a clean and dynamic HTML output.

Editor:

- [Esc] To reset the Box Editors and the closure of any open window overlay, including the Output (FULL) Preview.

New! - Double Click to Expand /Open & Close All Box Editors

New! - Ctrl + Up/Down to Show /Hide the Footer Bar. This allows hide footer bar when you want, + ESC to Back.

New! - Preview in Full page is now also possible via dblClick on the Vertical Drag-bar. Each keyboard action can be Reset via the ESC button.


Ex.
- Close this? [Esc], or a Click outside.


Front End User - New /Save Post is Now Open, Register *required.
New Play Now