HTML


<div id="flexbox">
  <div class="flexed">HTML</div>
  <div class="flexed">CSS</div>
  <div class="flexed">JS</div>
</div>


CSS


html, body {
  height: 100%;
  margin: 0
}
#flexbox {
  display: flex;
  flex-flow: row;
  height: calc( 33vh + 10px );
	text-align: center;
}
.flexed {
  float: left;
  background: tomato;
  height: calc(( 333vh + 5px ) *2 /10);
  margin: 0;
  min-width: 5vh;
  /*flex-basis: calc(100% - 5vh*2);*/
  flex-basis: 0vh;
  transition: flex-basis 300ms ease-in;
  white-space: nowrap;
  box-shadow: inset -1px -1px 0 0 white;
  font: 400 15px/1 sans-serif;
  color: white;
	flex-grow: 1;
  flex-shrink: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer
}
.flexed:before {
  content:' + ';
}
.moove {
  /*flex-basis: 0vh;*/
  flex-basis: calc(100% - 5vh*2);
  transition: flex-basis 300ms ease-in
}


JS


var box = $('.flexed');
box.on('click', function(evt) {
    //this.classList.add('removed');
    this.classList.toggle('moove');
});

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