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

              
                .step-bar
  ul
    li
      .number.active 1
      .text account setup
    li 
      .number 2
      .text profiles
      .line
    li 
      .number 3
      .text details
      .line
    
h1 Create new account
form
  .account-setup.register-form
    h2 Step 1
    input(name="email" type="email" placeholder="Email")
    input(name="password" type="password" placeholder="Password")
    input(name="confirmPassword" type="password" placeholder="Confirm Password")
    .button.firstNext Next
  .user-details.register-form
    h2 Step 2
    input(name="name" type="text" placeholder="Full name")
    input(name="counrty" type="text" placeholder="Country")
    input(name="city" type="text" placeholder="City")
    .button.firstPrev Back
    .button.secondNext Next
  .finish-step.register-form
    h2 Step 3
    label(for="birth-day") Birth date
    input(name="birth-day" type="date" class="error")
    .error-text *This field is required
    label.accept-conditions(for="accept") Accept <a href="#"> terms & conditions</a>
      input(name="accept" type="checkbox")
    .button.secondPrev Back
    .button.disabled Register

              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Roboto');
* {
  font-family: 'Roboto';
  letter-spacing: 0.05em;
  margin: 0;
  padding: 0;
}

html, body {
  text-align: center;
  height: 100%;
  background: #D09EA6; /* For browsers that do not support gradients */
  background: -webkit-linear-gradient(left top, #00659C, #6A1B9A); /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(bottom right, #00659C, #6A1B9A); /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(bottom right, #00695C, #6A1B9A); /* For Firefox 3.6 to 15 */
  background: linear-gradient(to bottom right, #00695C, #6A1B9A); /* Standard syntax */
  overflow-x: hidden;
}

.step-bar {
  text-transform: uppercase;
  color: white;
  font-size: 0.8em;
  margin-top: 40px;
}

.step-bar li{
  display: inline-block;
  position: relative;
  margin: 0px 30px; 
  width: 120px;
}

.step-bar .number{
  transition: background-color 0.1s linear, color 0.1s linear;
  display: inline-block;
  position: relative;
  color: #777;
  background-color: #fff; 
  width: 20px;
  padding: 8px 5px;
  margin-bottom: 4px;
  font-weight: 700;
  z-index: 1;
}

.step-bar .line {
  background-color: #fff;
  width: 180px;
  height: 5px;
  position: absolute;
  top: 15px;
  right: 60px;
  z-index: 0;
}

.step-bar .active {
  background-color: #6A1B9A;
  color: #fff;
}

.register-form {
  display: inline-block;
  background: #fff;
  padding: 20px 30px;
  width: 300px;
  text-align: center;
  -webkit-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.3);
  -moz-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.3);
  box-shadow: 0px 0px 15px 5px rgba(0,0,0,0.3);
  border-radius: 3px;
  position: relative;
}

.error {
  border: 1px solid #E57373;
  background-color: #FFEBEE;
}

.error-text {
  text-align: left;
  padding-left: 10px;
  font-size: 0.7em;
  color: #E57373;
}

h1 {
  margin: 75px 0;
  display: block;
  color: #fff;
  font-size: 1.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 200;
}

.register-form h2 {
  font-size: 1em;
  color: #777;
  font-weight: 400;
  margin-bottom: 10px;
}

.register-form input {
  padding: 15px; 
  margin: 5px 0;
  width: 260px;
}

.register-form input::placeholder {
  color: #aaa;
}

.register-form input.error::placeholder {
  color: #555;
}

.button {
  display: inline-block;
  padding: 10px 40px;
  background-color: #6A1B9A;
  color: #fff;
  margin: 25px 0  10px 0;
  user-select: none;
  cursor: pointer;
  position: relative;
}

.button:hover {
  background-color: #00897B;
}

.disabled {
  background-color: #aaa; 
}

.disabled:hover {
  background-color: #aaa; 
  cursor: default
}

.account-setup, .finish-step, .user-details {
  transition: 1s all ease-in-out;
  display: inline-block;
  position: absolute;
}

.account-setup {
  left: calc(50% - 175px);
}

.finish-step, .user-details {
  left: 1400px;
}

.line {
  transition: all 1s ease-in-out;
  background: linear-gradient(to right, #6A1B9A 50%, white 50%);
  background-size: 200% 100%;
  background-position: right bottom;
}

.line-active {
  background-position: left bottom;
}

label {
  display: block;
  text-align: left;
  font-size: 0.8em;
  padding-left: 5px;
  color: #444;
}

input[type=checkbox]{
  display: none;
}

.accept-conditions {
  margin-top: 20px;
}

input::placeholder { 
  color: black;
}


@media(max-width: 600px) {
  .step-bar {
    display: none;
  }
}
              
            
!

JS

              
                let steps = $('.step-bar ul li');

// First step
$('.firstNext').on('click', (e) => {
   setTimeout(() => {
     $(steps[1]).find('.number').addClass('active');
   }, 1000);
  
   $(steps[1]).find('.line').addClass('line-active');
   $('.account-setup').css('left', '-4000px');
   $('.user-details').css('left', 'calc(50% - 175px)');
});

// Second step
$('.secondNext').on('click', (e) => {
  setTimeout(() => {
    $(steps[2]).find('.number').addClass('active');
  }, 1000);
  
  $(steps[2]).find('.line').addClass('line-active');
  $('.user-details').css('left', '-4000px');
  $('.finish-step').css('left', 'calc(50% - 175px)');
});

$('.firstPrev').on('click', (e) => {
  $(steps[1]).find('.number').removeClass('active');
  $(steps[1]).find('.line').removeClass('line-active');
  $('.user-details').css('left', '4000px');
  $('.account-setup').css('left', 'calc(50% - 175px)');
});

// Last step
$('.secondPrev').on('click', (e) => {
  $(steps[2]).find('.number').removeClass('active');
  $(steps[2]).find('.line').removeClass('line-active');
  $('.finish-step').css('left', '4000px');
  $('.user-details').css('left', 'calc(50% - 175px)')
});



              
            
!
999px

Console