Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <form>  
  <input id="login" type="radio" name="tab"/>
  <label class="tab_label" for="login">log in</label>
  <input id="signup" type="radio" name="tab"/>
  <label class="tab_label" for="signup">sign up</label>  
  <figure class="reveal_login">
    <p>Please log in with your account.</p>
    <input type="text" placeholder="user"/>      
    <input type="password" placeholder="password"/> 
    <input id="logged_in" type="checkbox"/>
    <label class="content_label" for="logged_in">Keep me logged in</label>
    <input type="submit" value="Log in"/>
  </figure>  
  <figure class="reveal_signin">
    <p>You can register a new account.</p>
    <input type="text" placeholder="user"/>      
    <input type="password" placeholder="password"/> 
    <input type="submit" value="Sign up"/>
  </figure>
</form>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Montserrat:400,700);
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Montserrat';
}

*:after {
  content: '';
  clear: both;
  display: table;
}

body {
  background: #21242a;
  font-size: 14px;
}

form {
  position: relative;
  margin: auto;
  margin-top: 5em;
  width: 400px;
  background: #fff;
  border: 5px solid #ffa369;
  transition: all 300ms ease-in;
  box-shadow: 0px 50px 70px -40px rgba(0,0,0,.8);
  overflow: hidden;
}

form label.tab_label {
  float: left;
  color: #ffa369;
  font-size: 1.8em;
  text-transform: uppercase;
  text-align: center;
  line-height: 2.6em;
  width: 50%;
  transition: all 300ms ease-in;
  cursor: pointer;
}

form label.tab_label:hover,
form input[type="radio"]:checked + label.tab_label {
  background: #ffa369;
  color: #fff;
}

form input[id="login"]:checked ~ figure.reveal_login,
form input[id="signup"]:checked ~ figure.reveal_signin{
  background: #ffa369;
  height: initial;
  padding: 3em;
  z-index: 10000000;
}

form input[type="radio"] {
  display: none;
}

figure {
  float: left;
  width: 100%;
  height: 0px;
  transition: all 500ms cubic-bezier(0, 0, 0.4, 1.61);
}

figure p {
  color: #fff;
}

figure input {
  float: left;
  margin-top: 1em;
}

figure input:focus {
  outline: 0;
}

figure input::-webkit-input-placeholder {
  color: rgba(255,163,105,.7);
}

figure input[type="text"],
figure input[type="password"] {
  width: 100%;
  padding: .5em;
  border: 3px solid rgba(255,163,105,.7);
  color: #ffa369;
}

figure input[type="submit"] {
  float: right;
  background: #ffa369;
  border: 3px solid #fff;
  width: 50%;
  text-transform: uppercase;
  color: #fff;
  font-size: 1.2em;
  line-height: 1.6em;
  transition: all 300ms ease-in;
}

figure input[type="submit"]:hover {
  background: #fff;
  color: #ffa369;
}

figure input[type="checkbox"] {
  margin-top: 1.2em;
}

figure label.content_label {
  float: left;
  font-size: .7em;
  line-height: 2em;
  margin-top: 1.2em;
  margin-left: .4em;
  color: #fff;
}

.icon {
  position: absolute;
  left: 10px;
  top: 1.4em;
  color: rgba(255,163,105,.7);
}
              
            
!

JS

              
                
              
            
!
999px

Console