css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm 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. We'll also process your JavaScript with Babel.

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

Code Indentation

     

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.

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 class="wrapper">
  <header>
  <h1>Will I PR My Back Squat Today?</h1>
  <p class="header-description">After 24 weeks of grinding on The Armory's latest <a href="http://www.weightlifting.nyc/the-armory-powerlifting" target="_blank">powerlifting cycle</a>, it's time to re-test my 1 rep max back squat.</p>
</header>
<section>
  <form id="squat_PR">
    <fieldset>
      <legend class="form-legend">Please select all that apply</legend>
      <div class="checkboxes-column">
        <label for="hell_yes" class="checkbox-container-fancy">Hell yes
          <input type="checkbox" id="hell_yes" name="hell_yes" value="Hell Yes">
          <span class="checkmark"></span>
        </label>
        <label for="sculpted_ass" class="checkbox-container-fancy">You bet your sweet, sculpted ass
          <input type="checkbox" id="sculpted_ass" name="sculpted_ass" value="You Bet Your Sweet Sculpted Ass">
          <span class="checkmark"></span>
        </label>
        <label for="lightweight" class="checkbox-container-fancy">Down and up, baby. LIGHTWEIGHT!
          <input type="checkbox" id="lightweight" name="lightweight" value="Down and up, baby. LIGHTWEIGHT!">
          <span class="checkmark"></span>
        </label>
        <label for="stefi_cohen" class="checkbox-container-fancy">Is Stefi Cohen an absolute fucking unit?
          <input type="checkbox" id="stefi_cohen" name="stefi_cohen" value="Is Stefi Cohen an absolute fucking unit?">
          <span class="checkmark"></span>
        </label>
        <label for="hay" class="checkbox-container-fancy">The hay is in the barn. Lezzz go!
          <input type="checkbox" id="hay" name="hay" value="The hay is in the barn. Lezzz go!">
          <span class="checkmark"></span>
        </label>
      </div>
    </fieldset>
  </form>
  <button id="form-submit" class="button"></button>
</section>
<!-- <footer class="footer">
    <div class="socialLinks">
      <a href="https://github.com/letsbleachthis" target="_blank" class="iconSocial github"></a>
      <a href="https://dribbble.com/LaurenChilcote" target="_blank" class="iconSocial dribbble"></a>
      <a href="https://www.linkedin.com/in/laurenchilcote/" target="_blank" class="iconSocial linkedIn"></a>
      <a href="https://twitter.com/LaurenChilcote" target="_blank" class="iconSocial twitter"></a>
    </div>
  </footer> -->
</div>
            
          
!
            
              :root {
  --bgColor: #001F52;
  --textColor: #fff;
  --actionColor: #00c4ff;
  --popColor: #ff8a00;
}

@mixin h1Font {
  font-size: 1.8em;
  line-height: 1.25em;
  font-family: 'Montserrat', sans-serif;
}
@mixin bodyFont {
  font-size: 1.1em;
  line-height: 1.5em;
  font-family: 'Proxima Nova', sans-serif;
}
@mixin submitButton {
  font-size: 1.1em;
  line-height: 1.5em;
  padding: 0.5em 2em;
  background: var(--actionColor);
  color: var(--textColor);
  border: 0;
  border-radius: 1.5em;
}
body {
  background: var(--bgColor);
  color: var(--textColor);
  @include bodyFont;
  padding: 1em 4em;
  display: flex;
  justify-content: center;
  align-items: center;
  
  .wrapper {
    min-width: 350px;
    max-width: 550px;
  }
}
h1 {
  @include h1Font;
  color: var(--popColor);
}
p, a, input[type="checkbox"] label {
  @include bodyFont;
}
a {
  color: var(--textColor);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--actionColor);
}
fieldset {
  border-color: var(--textColor);
  border-radius: 2px;
}
.form-legend {
  text-transform: uppercase;
  letter-spacing: 0.075em;
  font-size: 0.75em;
  padding: 0 10px;
  color: var(--popColor);
}
#squat_PR {
  margin-bottom: 2em;
}
/* Button animation */
.button {
  font-size: 1em;
  font-family: 'Roboto', sans-serif;
  outline: none;
  height: 50px;
  text-align: center;
  width: 150px;
  border-radius: 50px;
  background: var(--bgColor);
  border: 2px solid var(--actionColor);
  color: var(--actionColor);
  text-shadow: 0;
  cursor: pointer;
  transition: all 0.25s ease;
   
  &:hover {
    color: var(--textColor);
    background: var(--actionColor);
  }
  &:after {
    content:"Submit";
  }
}
.onClick {
  width: 50px;
  border-color: var(--textColor);
  font-size: 0;
  border-left-color: var(--actionColor);
  animation: rotating 2s 0.25s linear infinite;
  
  &:hover {
    color: var(--actionColor);
    background: #fff;
  }
  &:after {
    content:"";
  }
}
.validate {
  font-size: 1.2em;
  color: var(--textColor);
  background: var(--actionColor);
  
  &:after {
    font-family:'FontAwesome';
    content:"\f00c";
  }
}
@keyframes rotating {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Checkbox Styling */
.checkboxes-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 18px;   
}

/* Customize the label (the container) */
.checkbox-container-fancy {
  display: block;
  position: relative;
  padding-left: 36px;
  margin-bottom: 20px;
  cursor: pointer;
  user-select: none;
  
  &:last-of-type {
    margin-bottom: 0;
  }
  
  /* Hide the browser's default checkbox */
  input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
  }
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 22px;
  width: 22px;
  background-color: #eee;
  border-radius: 1px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.5);
}

/* On mouse-over, add a grey background color */
.checkbox-container-fancy:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.checkbox-container-fancy input:checked ~ .checkmark {
  background-color: var(--actionColor);
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.checkbox-container-fancy input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.checkbox-container-fancy .checkmark:after {
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid var(--bgColor);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.footer {
  margin: 4em 0 0.5em;
  
  .socialLinks {
    display: flex;
    flex-direction: row;
    justify-content: center;
    
    .iconSocial {
      padding: 0.25em;
      margin: 0 0.5em;
      width: 38px;
      height: 38px;
      border-radius: 100%;
      border: 1px solid var(--popColor);
      transition: all 150ms ease-in;
      
      &:hover {
        border-color: transparentize(#ff8a00, 0.5);
      }
      &.dribbble {
         background: url("https://previews.dropbox.com/p/orig/AATP5gYFgMAosCOejOT8wZVwqXIgwFo__Hk3hppA-WqnGdW3ithFEcEOL-Ryc_i9e6x9ZosWFHVWkydAqMHWLCMCzbjbhNiAm35HXnJ-4tjDGbqH1GWh_cGyeV4gE7MBO8CVQF_Zwpueae2Yn98eDPyQN6LInVuau-cYTRjaetNWeVvdZMdmvqkkCRvJwoQJfL2Sm7jzE7-_Gx9smCufPFZb/p.svg?size=2048x1536&size_mode=3") no-repeat;
    background-position: center;
      }
      &.github {
        background: url("https://previews.dropbox.com/p/orig/AATGqDuwDZJUUsuaHuFZ3fd7z9dHvn7tlF3XdBi3-Nxu7_O50eMNG9IIMX_6teChpT5sGyUE6Zhaqnaqt-i3kOcH4dZcpUrb1AhycaSds-sxnucaS8s0NEvbe0_BXVrV4t0vt9QIGO_fu07ido6oqPzwOCRD3QDm0ZAkmNyAkNx8k-oQg6Ya7Cj1Obo-NHeQBW2lq9zeuPzeuaqz4f8UO_zQ/p.svg?size=2048x1536&size_mode=3") no-repeat;
    background-position: center;
      }
      &.linkedIn {
        background: url("https://previews.dropbox.com/p/orig/AARgD-ni6irda9zD2mdMuhqQzPqJJxuebv5KYdalLR2NbV7fmNGae9JCNLTtAWA5yV6rlJ6OoptrPrXcciO3YZ5VfuNPqsClYh5yCsH8x3tbiIPzZHBVqFBJoo9GaoSTQK3nDiLCqDpAvm5kMt43KsIjlSOoiuzfYMV5ZWSLYFvTFBBiTa0gbZU5LDQJKTwSaHa5nKMJ7mgzmudrpZjECc_I/p.svg?size=2048x1536&size_mode=3") no-repeat;
    background-position: center;
      }
      &.twitter {
        background: url("https://previews.dropbox.com/p/orig/AATxYjI9euVJxKCZm0EAJpu_PsNUVGcYNbd9_BDuOrP_Upax6FWvbA9Rrf72Nww7KvjwaB4bNhdtM-qEJu17yvCkt4GYXfAooPOyjnFuvTGim2w3IeTpImmT-WhGc-kLK8I2r7w5FKU5KW8q5qSkXKZD2ZbnFyPrIeDOpf3JOOukaCzUNc79nr4bsfPL_XNzeusfq9dgFjR8MlSy9pcs-SR_/p.svg?size=2048x1536&size_mode=3") no-repeat;
    background-position: center;
      }
    }
  }
}
            
          
!
            
              $(function() {
  var button = $( "#form-submit" );
  
  button.on("click", function() {
    button.addClass( "onClick", 250, validate);
  });

  function validate() {
    setTimeout(function() {
      button.removeClass( "onClick" );
      button.addClass( "validate", 450, callback );
    }, 2250 );
  }
    function callback() {
      setTimeout(function() {
        button.removeClass( "validate" );
      }, 1250 );
    }
  });
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console