Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.



  <form name="userAddForm" action="" method="post" onsubmit="return addSubmitForm()">
    <div class="flexybox">
      <div class="form-group coolhide flexyitem">
        <input name="username" type="text" class="form-control" value="" placeholder="" />
      <div class="form-group coolhide flexyitem">
        <input name="useremail" type="text" class="form-control" value="" placeholder="" />
    <div class="form-group coolhide">
      <label>Fun fact</label>
      <input name="userfact" type="text" class="form-control" value="" placeholder="Enter some fun fact about this user!" />
    <div class="btn-block">
      <input name="useraddsubmit" type="button" class="btn btn-primary" value="Insert">
      <input name="useraddcancel" type="button" class="btn btn-default" value="Cancel">




                html {
  background: #207cca;
  /* Old browsers */
  background: -moz-linear-gradient(top, #207cca 0%, #2989d8 50%, #1e5799 100%);
  /* FF3.6-15 */
  background: -webkit-linear-gradient(top, #207cca 0%, #2989d8 50%, #1e5799 100%);
  /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to bottom, #207cca 0%, #2989d8 50%, #1e5799 100%);
  /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#207cca', endColorstr='#1e5799', GradientType=0);
  /* IE6-9 */
  background-attachment: fixed;

body {
  background: transparent;
  padding: 10px 20px;
  color: #eee;

.flexybox {
  display: flex;
  vertical-align: top;

.flexyitem {
  width: 50%;
  margin-right: 10px;

.flexyitem:last-child {
  margin-right: 0;

.form-group {
  height: 60px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 3px;
  padding: 3px 10px;
  transition: background ease-out 0.6s;

.form-group:focus {
  background: rgba(0, 0, 0, 0.8);

.form-group input {
  padding-left: 0;
  border: 0;
  border-radius: 0;
  color: #fff;
  background-color: transparent;
  box-shadow: none;
  vertical-align: bottom;
  transition: height 0.3s 0.1s;

.form-group.coolhide input {
  height: 0;
  overflow: hidden;

.form-group input:focus {
  box-shadow: none;
  outline: none;

.form-group.coolhide:hover input,
.form-group input
.form-group.coolhide input:focus*/

  height: 34px;
  overflow: inherit;

.form-group label {
  font-family: 'Hind', sans-serif;
  vertical-align: top;
  margin-bottom: 0;
  transition: 0.3s ease-out 0.1s;

.form-group.coolhide label {
  font-size: 24px;
  font-weight: 300;
  color: #fff;
  padding-top: 0.4em;

.form-group.coolhide:hover label,
.form-group label,
.form-group.coolhide label:focus {
  font-size: 13px;
  font-weight: 400;
  color: #4FB4EA;
  padding-top: 0.2em;

form[name=userAddForm] {
  width: 600px;
  margin: 20px auto;
  padding: 30px;
  border: 1px solid rgba(0, 0, 0, .3);
  border-radius: 0 0 5px 5px;
  background: rgba(0, 0, 80, 0.4);
  box-shadow: 0 2px 3px 0px rgba(0, 0, 0, .3);


                $(document).ready(function() {
  $('.form-group').hover(function() {
    if ($(this).children('input').val() == '') {
    } else {