Pen Settings



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


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.


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.

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.



<div class="form">
  <label class="lblInp m-btm-40" for="mail">
    <input type="email" id="mail" required></input>
    <label for="mail">Mail</label>
    <i class="fa fa-envelope" aria-hidden="true"></i>
  <label class="lblInp" for="password">
    <input type="password" id="password"></input>
    <label for="password">Password</label>
    <i class="fa fa-lock" aria-hidden="true"></i>


  background #3F51B5
  font-family 'Lato', sans-serif
  box-sizing border-box
  width 100%
  max-width 290px
  margin 0 auto
  padding-top 60px
  position relative
  display block
  height 48px
  cursor text
.lblInp input
  position absolute
  bottom 0
  width 100%
  height 2px
  padding-left 32px
  border 0
  border-radius 2px
  box-shadow 0 2px 8px rgba(#000,.3)
  transition all .3s ease
  vertical-align bottom
  font-size 16px
    height 100%
    outline none
    + label
      position absolute
      transform translateY(-34px)
      font-size 12px
      color rgba(white,.6)
    + label + i
      transform translateY(0px)
      visibility visible
      transition transform .3s ease
    color white
    line-height 48px
    padding-left 3px
    transform translateY(0)
    transition all .3s ease
    pointer-events none
    & + i
      position absolute
      display block
      visibility hidden
      left 10px
      transform translateY(10px)
      color #ddd
      z-index 1
  font-size 14px
  top 17px

  font-size 18px
  top 16px
  margin-bottom 40px


                $('.lblInp input').keyup(function() {
  if($(this).val().length > 0){
    $(this).closest('.lblInp input').addClass('filled');
    $(this).closest('.lblInp input').removeClass('filled');