Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import or require. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Behavior

Save Automatically?

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.

Editor Settings

Code Indentation

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

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div id="wrap" class="wrap">
<div class="wrap-inner">

<!--Login Section-->
<div class="section" id="section1">
  <div class="form form--login">
    <h1 class="alpha">Login</h1>
    <p>You already have an account? Great! Login here.</p>
    <div>
      <form class="form-wrap">
        <input id="" class="inputbox email" type="text" placeholder="Email id" />
        <input id="" class="inputbox password" type="password" placeholder="Password" />
        <p><a href="#" class="button">Login <i class="icon-rocket"></i></a></p>
      </form>
      <p>Forget password? It's ok. <a class="scroll" href="#section3" data-section="3">Recover here &raquo;</a></p>
    </div>
    <hr />
    <p>Or you can Login with one of the following</p>
    <div class="social">
      <a href="#" class="facebook"><i class="icon-facebook"></i></a>
      <a href="#" class="twitter"><i class="icon-twitter"></i></a>
      <a href="#" class="google"><i class="icon-google-plus"></i></a>
    </div>
    <p>Don't have an account? <a class="scroll" href="#section2" data-section="2">Register Now &raquo;</a></p>
  </div>
</div>
<!--END: Login Section-->
 
<!--Signup Section-->
<div class="section" id="section2">
  <div class="form form--signup">
    <h1 class="alpha">Sign Up in Seconds!</h1>
    <p>Signup using your Email address</p>
    <div>
      <form class="form-wrap">
        <input id="" class="inputbox name" type="text" placeholder="Your Name" />
        <input id="" class="inputbox email" type="text" placeholder="Email id" />
        <input id="" class="inputbox password" type="password" placeholder="Password" />
        <input id="" class="inputbox password" type="password" placeholder="Confirm Password" />
        <p><a href="#" class="button">Create my Account <i class="icon-rocket"></i></a></p>
        <!--<input id="" type="button" class="button" value="Sign up" />-->
      </form>
    </div>
    <hr />
    <p>Or you can Signup with one of the following</p>
    <div class="social">
      <a href="#" class="facebook"><i class="icon-facebook"></i><span>Facebook</span></a>
      <a href="#" class="twitter"><i class="icon-twitter"></i><span>Twitter</span></a>
      <a href="#" class="google"><i class="icon-google-plus"></i><span>Google</span></a>
    </div>
    <p><a class="scroll" href="#section1" data-section="1">&laquo; Login here</a></p>
  </div>
</div>
<!--END: Signup Section-->
 
<!--Forget Password Section-->
<div class="section" id="section3">
  <div class="form form--login">
    <h1 class="alpha">Lost password?</h1>
    <p>Ohk, don't panic. You can recover it here.</p>
    <div>
      <form class="form-wrap">
        <input id="" class="inputbox email" type="text" placeholder="Email id" />
        <p><a href="#" class="button">Send me <i class="icon-rocket"></i></a></p>
      </form>
    </div>
    <hr />
    <p>You remember your Password? Brilliant!</p>
    <p><a class="scroll" href="#section1" data-section="1">&laquo; Login here</a></p>
  </div>
</div>
<!--END: Forget Password Section-->

</div>
</div>
            
          
!
            
              @import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700);

*,
*:after,
*:before {
  box-sizing: border-box;  
}

html {
  font-size: 62.5%;
}

body {
  margin: 0;
  padding: 0;
  background: #2ca1cc;
  font-family: "Open Sans", sans-serif;
  font-size: 1.4rem;
  color: #999;
  vertical-align: baseline;
  
  /* This will hide the Horizontal Scroll bar */
  overflow-x: hidden;
}

hr {
  height: 0;
  margin: 3rem 0;
  border: 0;
  border-top: 1px dashed #ddd;
}

.wrap {
  width: 100%;
  overflow: hidden;
}

.wrap-inner {
  width: 300%;
  
  /* css transitions */
  transition: transform 500ms cubic-bezier(1.000, 0.000, 0.000, 1.000);
  transform: translateX(0);
  -webkit-backface-visibility: hidden;
}

.section {
  margin: 0;
  width: 33%;
  height: 100%;
  padding: 1rem;
  display: inline-block;
  vertical-align: top;
  text-align: center;
}

.alpha {
  color: #333;
}

.form {
  min-width: 30rem;
  background: #fff;
  border-radius: 4px;
  padding: 2rem;
  text-align: center;
  margin: 5em auto;
  display: inline-block;
}


/* Inputs */

.form-wrap {
  margin: 0;
  padding: 1rem 0;
}
.form-wrap .inputbox {
  border: 1px solid #eaedf2;
  border-radius: 3px;
  padding: 1rem 0 1rem 3.2rem;
  width: 44%;
  outline: none;
  margin-bottom: 1rem;
  font-family: inherit;
}
.form--login .form-wrap .inputbox {
  width: 88%;
}
.form-wrap .name {
  background: #eaedf2 url(img/user.png) 10px 13px no-repeat;
}
.form-wrap .email {
  background: #eaedf2 url(img/email.png) 10px 15px no-repeat;
}
.form-wrap .password {
  background: #eaedf2 url(img/password.png) 10px 10px no-repeat;
}
.form-wrap a.button {
  background: none repeat scroll 0 0 #14B9D5;
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 1rem 2rem;
  text-decoration: none;
}
.form-wrap .button:hover {
  background :#0e778a;
}
.form-wrap a.button > i {
  font-size: 2rem;
}

.scroll {
  color: #555;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
}
.scroll:hover {
  color: #222;
}


/* Social Buttons */

.social {
  margin: 4rem 0 1rem;
}
.social a {
  display: inline-block;
  min-width: 6.2rem;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  padding: 1rem 0;
}
.social a.facebook {
  background: #3b5998;
}
.social a.facebook:hover {
  background: #37528c;
}
.social .twitter {
  background: #1daee3;
  margin: 0 2.6rem;
}
.social .twitter:hover {
  background: #1ca4d6;
}
.social .google {
  background: #d34836;
}
.social .google:hover {
  background: #c74534;
}
.social i {
  border-radius: 4px 0 0 4px;
  font-size: 3.8rem;
  padding: 1rem 1.5rem;
  vertical-align: middle;
  clear: both;
}
.social .facebook > span,
.social .twitter > span,
.social .google > span {
  font-size: 1.8rem;
  letter-spacing: 0.06em;
  padding: 2.4rem 2rem 2.4rem 0;
}


/* Goto */

.goto-2 {
  transform: translateX(-33%);
}
.goto-3 {
  transform: translateX(-66%);
}
            
          
!
            
              $(function() {
  $('a.scroll').on('click',function ( event ) {
    event.preventDefault();

    var $anchor  = $(this),
        $section = $anchor.attr('data-section');
    
    if ( $section === '2' || $section === '3' ) {
      $('#wrap .wrap-inner').addClass('goto-' + $section);
    } else {
      $('#wrap .wrap-inner').removeClass('goto-2 goto-3');
    }
  });
});
            
          
!
999px

Console