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 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

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.

HTML

              
                <form id="form-wrapper" class="form-wrapper" name="form" action="POST">
            <nav id="progress-bar" class="progress-bar">
                <ul class="progress-bar__container">  
                    <li class="progress-bar__item current"><a href="#" class="link">Account setup</a></li>
                    <li class="progress-bar__item"><a href="#" class="link">Personal details</a></li>
                    <li class="progress-bar__item"><a href="#" class="link">Contact info</a></li>
                    <li class="progress-bar__item"><a href="#" class="link">Social Profiles</a></li>      
                </ul>
            </nav>
           
            <div id="fieldset-container" class="tab-wrapper ">
                <fieldset class="tab-panel">
                    <legend>Account setup</legend>
                    <div class="input-group">
                        <input type="email" class="input" name="email" id="email" required>
                        <label class="label" for="email"><i class="lnr lnr-envelope"></i> Email</label>
                    </div>

                    <div class="input-group"> 
                        <input type="email" class="input" name="email-alternative" id="email-alternative">
                        <label class="label" for="email-alternative"><i class="lnr lnr-envelope"></i> Alternative email (optional)</label>
                    </div>

                    <div class="input-group">
                        <input type="password" class="input" name="password" id="password" required>
                        <label class="label" for="password"><i class="lnr lnr-lock"></i> Password</label>
                        
                    </div>

                    <div class="input-group">
                        <input type="password" class="input" name="confirm-p" id="confirm-p" required>
                        <label class="label" for="confirm-p"><i class="lnr lnr-lock"></i> Confirm password</label>
                    </div>

                </fieldset>

                <fieldset class="tab-panel">
                    <legend>Personal details</legend>
                    <div class="input-group">
                        <input type="text" class="input" name="first-name" id="first-name" required> 
                        <label class="label" for="first-name"><i class="lnr lnr-user"></i> First name</label>
                    </div>
                    <div class="input-group">
                        <input type="text" class="input" name="last-name" id="last-name" required> 
                        <label class="label" for="last-name"><i class="lnr lnr-user"></i> Last name</label>
                    </div>

                    <div class="input-group focus">
                        <input type="date" class="input" name="date" id="date" required>
                        <label class="label" for="date"><i class="lnr lnr-calendar-full"></i> Brith date</label>
                    </div>
                    
                    <div class="input-group radio">
                        <input type="radio" class="input" name="genre" id="male" value="male">
                        <label class="label-radio" for="male">Male</label>
                        <input type="radio" class="input" name="genre" id="female" value="female">
                        <label class="label-radio" for="female"> Female</label>
                        
                    </div>

                </fieldset>

                <fieldset class="tab-panel">
                    <legend>Contact info</legend>
                    <div class="input-group">
                        <input type="text" class="input" name="address" id="address" required> 
                        <label class="label" for="address"><i class="lnr lnr-map-marker"></i> Address</label>
                    </div>

                    <div class="input-group">
                        <input type="text" class="input" name="city" id="city" required>
                        <label class="label" for="city">City</label>
                    </div>

                    <div class="input-group select">
                        <select name="country" class="input" id="country" required>
                            <option value=""></option>
                            <option value="AFG">Afghanistan</option>
                            <option value="ALA">Åland Islands</option>
                            <option value="ALB">Albania</option>
                            <option value="DZA">Algeria</option>
                            <option value="ASM">American Samoa</option>
                            <option value="AND">Andorra</option>
                            <option value="AGO">Angola</option>
                            <option value="AIA">Anguilla</option>
                            <option value="ATA">Antarctica</option>
                            <option value="ATG">Antigua and Barbuda</option>
                            <option value="ARG">Argentina</option>
                            <option value="ARM">Armenia</option>
                            <option value="ABW">Aruba</option>
                            <option value="AUS">Australia</option>
                            <option value="AUT">Austria</option>
                            <option value="AZE">Azerbaijan</option>
                            <option value="BHS">Bahamas</option>
                            <option value="BHR">Bahrain</option>
                            <option value="BGD">Bangladesh</option>
                            <option value="BRB">Barbados</option>
                            <option value="BLR">Belarus</option>
                            <option value="BEL">Belgium</option>
                            <option value="BLZ">Belize</option>
                            <option value="BEN">Benin</option>
                            <option value="BMU">Bermuda</option>
                            <option value="BTN">Bhutan</option>
                            <option value="BOL">Bolivia, Plurinational State of</option>
                            <option value="BES">Bonaire, Sint Eustatius and Saba</option>
                            <option value="BIH">Bosnia and Herzegovina</option>
                            <option value="BWA">Botswana</option>
                            <option value="BVT">Bouvet Island</option>
                            <option value="BRA">Brazil</option>
                            <option value="IOT">British Indian Ocean Territory</option>
                            <option value="BRN">Brunei Darussalam</option>
                            <option value="BGR">Bulgaria</option>
                            <option value="BFA">Burkina Faso</option>
                            <option value="BDI">Burundi</option>
                            <option value="KHM">Cambodia</option>
                            <option value="CMR">Cameroon</option>
                            <option value="CAN">Canada</option>
                            <option value="CPV">Cape Verde</option>
                            <option value="CYM">Cayman Islands</option>
                            <option value="CAF">Central African Republic</option>
                            <option value="TCD">Chad</option>
                            <option value="CHL">Chile</option>
                            <option value="CHN">China</option>
                            <option value="CXR">Christmas Island</option>
                            <option value="CCK">Cocos (Keeling) Islands</option>
                            <option value="COL">Colombia</option>
                            <option value="COM">Comoros</option>
                            <option value="COG">Congo</option>
                            <option value="COD">Congo, the Democratic Republic of the</option>
                            <option value="COK">Cook Islands</option>
                            <option value="CRI">Costa Rica</option>
                            <option value="CIV">Côte d'Ivoire</option>
                            <option value="HRV">Croatia</option>
                            <option value="CUB">Cuba</option>
                            <option value="CUW">Curaçao</option>
                            <option value="CYP">Cyprus</option>
                            <option value="CZE">Czech Republic</option>
                            <option value="DNK">Denmark</option>
                            <option value="DJI">Djibouti</option>
                            <option value="DMA">Dominica</option>
                            <option value="DOM">Dominican Republic</option>
                            <option value="ECU">Ecuador</option>
                            <option value="EGY">Egypt</option>
                            <option value="SLV">El Salvador</option>
                            <option value="GNQ">Equatorial Guinea</option>
                            <option value="ERI">Eritrea</option>
                            <option value="EST">Estonia</option>
                            <option value="ETH">Ethiopia</option>
                            <option value="FLK">Falkland Islands (Malvinas)</option>
                            <option value="FRO">Faroe Islands</option>
                            <option value="FJI">Fiji</option>
                            <option value="FIN">Finland</option>
                            <option value="FRA">France</option>
                            <option value="GUF">French Guiana</option>
                            <option value="PYF">French Polynesia</option>
                            <option value="ATF">French Southern Territories</option>
                            <option value="GAB">Gabon</option>
                            <option value="GMB">Gambia</option>
                            <option value="GEO">Georgia</option>
                            <option value="DEU">Germany</option>
                            <option value="GHA">Ghana</option>
                            <option value="GIB">Gibraltar</option>
                            <option value="GRC">Greece</option>
                            <option value="GRL">Greenland</option>
                            <option value="GRD">Grenada</option>
                            <option value="GLP">Guadeloupe</option>
                            <option value="GUM">Guam</option>
                            <option value="GTM">Guatemala</option>
                            <option value="GGY">Guernsey</option>
                            <option value="GIN">Guinea</option>
                            <option value="GNB">Guinea-Bissau</option>
                            <option value="GUY">Guyana</option>
                            <option value="HTI">Haiti</option>
                            <option value="HMD">Heard Island and McDonald Islands</option>
                            <option value="VAT">Holy See (Vatican City State)</option>
                            <option value="HND">Honduras</option>
                            <option value="HKG">Hong Kong</option>
                            <option value="HUN">Hungary</option>
                            <option value="ISL">Iceland</option>
                            <option value="IND">India</option>
                            <option value="IDN">Indonesia</option>
                            <option value="IRN">Iran, Islamic Republic of</option>
                            <option value="IRQ">Iraq</option>
                            <option value="IRL">Ireland</option>
                            <option value="IMN">Isle of Man</option>
                            <option value="ISR">Israel</option>
                            <option value="ITA">Italy</option>
                            <option value="JAM">Jamaica</option>
                            <option value="JPN">Japan</option>
                            <option value="JEY">Jersey</option>
                            <option value="JOR">Jordan</option>
                            <option value="KAZ">Kazakhstan</option>
                            <option value="KEN">Kenya</option>
                            <option value="KIR">Kiribati</option>
                            <option value="PRK">Korea, Democratic People's Republic of</option>
                            <option value="KOR">Korea, Republic of</option>
                            <option value="KWT">Kuwait</option>
                            <option value="KGZ">Kyrgyzstan</option>
                            <option value="LAO">Lao People's Democratic Republic</option>
                            <option value="LVA">Latvia</option>
                            <option value="LBN">Lebanon</option>
                            <option value="LSO">Lesotho</option>
                            <option value="LBR">Liberia</option>
                            <option value="LBY">Libya</option>
                            <option value="LIE">Liechtenstein</option>
                            <option value="LTU">Lithuania</option>
                            <option value="LUX">Luxembourg</option>
                            <option value="MAC">Macao</option>
                            <option value="MKD">Macedonia, the former Yugoslav Republic of</option>
                            <option value="MDG">Madagascar</option>
                            <option value="MWI">Malawi</option>
                            <option value="MYS">Malaysia</option>
                            <option value="MDV">Maldives</option>
                            <option value="MLI">Mali</option>
                            <option value="MLT">Malta</option>
                            <option value="MHL">Marshall Islands</option>
                            <option value="MTQ">Martinique</option>
                            <option value="MRT">Mauritania</option>
                            <option value="MUS">Mauritius</option>
                            <option value="MYT">Mayotte</option>
                            <option value="MEX">Mexico</option>
                            <option value="FSM">Micronesia, Federated States of</option>
                            <option value="MDA">Moldova, Republic of</option>
                            <option value="MCO">Monaco</option>
                            <option value="MNG">Mongolia</option>
                            <option value="MNE">Montenegro</option>
                            <option value="MSR">Montserrat</option>
                            <option value="MAR">Morocco</option>
                            <option value="MOZ">Mozambique</option>
                            <option value="MMR">Myanmar</option>
                            <option value="NAM">Namibia</option>
                            <option value="NRU">Nauru</option>
                            <option value="NPL">Nepal</option>
                            <option value="NLD">Netherlands</option>
                            <option value="NCL">New Caledonia</option>
                            <option value="NZL">New Zealand</option>
                            <option value="NIC">Nicaragua</option>
                            <option value="NER">Niger</option>
                            <option value="NGA">Nigeria</option>
                            <option value="NIU">Niue</option>
                            <option value="NFK">Norfolk Island</option>
                            <option value="MNP">Northern Mariana Islands</option>
                            <option value="NOR">Norway</option>
                            <option value="OMN">Oman</option>
                            <option value="PAK">Pakistan</option>
                            <option value="PLW">Palau</option>
                            <option value="PSE">Palestinian Territory, Occupied</option>
                            <option value="PAN">Panama</option>
                            <option value="PNG">Papua New Guinea</option>
                            <option value="PRY">Paraguay</option>
                            <option value="PER">Peru</option>
                            <option value="PHL">Philippines</option>
                            <option value="PCN">Pitcairn</option>
                            <option value="POL">Poland</option>
                            <option value="PRT">Portugal</option>
                            <option value="PRI">Puerto Rico</option>
                            <option value="QAT">Qatar</option>
                            <option value="REU">Réunion</option>
                            <option value="ROU">Romania</option>
                            <option value="RUS">Russian Federation</option>
                            <option value="RWA">Rwanda</option>
                            <option value="BLM">Saint Barthélemy</option>
                            <option value="SHN">Saint Helena, Ascension and Tristan da Cunha</option>
                            <option value="KNA">Saint Kitts and Nevis</option>
                            <option value="LCA">Saint Lucia</option>
                            <option value="MAF">Saint Martin (French part)</option>
                            <option value="SPM">Saint Pierre and Miquelon</option>
                            <option value="VCT">Saint Vincent and the Grenadines</option>
                            <option value="WSM">Samoa</option>
                            <option value="SMR">San Marino</option>
                            <option value="STP">Sao Tome and Principe</option>
                            <option value="SAU">Saudi Arabia</option>
                            <option value="SEN">Senegal</option>
                            <option value="SRB">Serbia</option>
                            <option value="SYC">Seychelles</option>
                            <option value="SLE">Sierra Leone</option>
                            <option value="SGP">Singapore</option>
                            <option value="SXM">Sint Maarten (Dutch part)</option>
                            <option value="SVK">Slovakia</option>
                            <option value="SVN">Slovenia</option>
                            <option value="SLB">Solomon Islands</option>
                            <option value="SOM">Somalia</option>
                            <option value="ZAF">South Africa</option>
                            <option value="SGS">South Georgia and the South Sandwich Islands</option>
                            <option value="SSD">South Sudan</option>
                            <option value="ESP">Spain</option>
                            <option value="LKA">Sri Lanka</option>
                            <option value="SDN">Sudan</option>
                            <option value="SUR">Suriname</option>
                            <option value="SJM">Svalbard and Jan Mayen</option>
                            <option value="SWZ">Swaziland</option>
                            <option value="SWE">Sweden</option>
                            <option value="CHE">Switzerland</option>
                            <option value="SYR">Syrian Arab Republic</option>
                            <option value="TWN">Taiwan, Province of China</option>
                            <option value="TJK">Tajikistan</option>
                            <option value="TZA">Tanzania, United Republic of</option>
                            <option value="THA">Thailand</option>
                            <option value="TLS">Timor-Leste</option>
                            <option value="TGO">Togo</option>
                            <option value="TKL">Tokelau</option>
                            <option value="TON">Tonga</option>
                            <option value="TTO">Trinidad and Tobago</option>
                            <option value="TUN">Tunisia</option>
                            <option value="TUR">Turkey</option>
                            <option value="TKM">Turkmenistan</option>
                            <option value="TCA">Turks and Caicos Islands</option>
                            <option value="TUV">Tuvalu</option>
                            <option value="UGA">Uganda</option>
                            <option value="UKR">Ukraine</option>
                            <option value="ARE">United Arab Emirates</option>
                            <option value="GBR">United Kingdom</option>
                            <option value="USA">United States</option>
                            <option value="UMI">United States Minor Outlying Islands</option>
                            <option value="URY">Uruguay</option>
                            <option value="UZB">Uzbekistan</option>
                            <option value="VUT">Vanuatu</option>
                            <option value="VEN">Venezuela, Bolivarian Republic of</option>
                            <option value="VNM">Viet Nam</option>
                            <option value="VGB">Virgin Islands, British</option>
                            <option value="VIR">Virgin Islands, U.S.</option>
                            <option value="WLF">Wallis and Futuna</option>
                            <option value="ESH">Western Sahara</option>
                            <option value="YEM">Yemen</option>
                            <option value="ZMB">Zambia</option>
                            <option value="ZWE">Zimbabwe</option>
                        </select>
                        <label class="label" for="country">Country</label>
                    </div>


                </fieldset>
                
                <fieldset class="tab-panel">
                    <legend>Social Profiles</legend>
                    <div class="input-group">
                        <input type="url" class="input" name="facebook" id="facebook">
                        <label class="label" for="facebook"><i class="icon-facebook"></i> Facebook</label>
                    </div>
                    <div class="input-group">
                        <input type="url" class="input" name="twitter" id="twitter">
                        <label class="label" for="twitter"><i class="icon-twitter"></i> Twitter</label>
                    </div>

                    <div class="input-group">
                        <input type="url" class="input" name="instagram" id="instagram">
                        <label class="label" for="instagram"><i class="icon-instagram"></i> Instagram</label>
                    </div>

                </fieldset>
               
            </div>
            <input class="submit-button button" type="submit" value="Register">
            <nav id="tab-nav" class="tab-nav">
                <button class="tab-nav__button nav-button prev lnr lnr-arrow-up"></button>
                <button class="tab-nav__button nav-button next lnr lnr-arrow-down"></button>
            </nav>
            
        </form>
              
            
!

CSS

              
                $color__theme: #039BE5;
$color__theme-darker: #006798;
$color__theme-lighten: #50C6FF;
$color__theme-lighten-2:  #DCF4FF;
$color__theme-error:#EC1F02;
$color__theme-error-lighten: #FF6650;
$color__theme-success: #01AC63;
$color__theme-white:#FFFFFF;

$color__title:$color__theme;
$color__text-main: #A7A9AC;
$color__text-screen-invert: $color__theme-lighten-2;
$color__bg-input:#F5F5F6;
$color__bg-input-hover: $color__theme-lighten-2;

$color__border-button-focus: $color__theme-darker;

* {
    margin:0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    font-size: 1em;
}

body {
    width: 100%;
    height: 100%;
    font-family: sans-serif;
    color:$color__text-main;
	 background: repeating-linear-gradient($color__theme-lighten-2,$color__theme-lighten);
    background-position: center;
    background-attachment: fixed;
}


.form-wrapper {
    position: relative;
    width:500px;
    height: 400px;
    display:flex;
    flex-wrap: wrap;
    background:$color__theme-white;
    margin:25px auto;
    border-radius:6px;
    box-shadow: 1.5px 2px 1px 1px rgba(0,0,0,0.5);
    font-family: 'Source Sans Pro', sans-serif;
    overflow: hidden;
}

.tab-wrapper{
  width:350px;
  height: 100%;
  position: relative;
  transition: margin 300ms ease;
}
.progress-bar {
    width: 150px;
    background: linear-gradient($color__theme, $color__theme-lighten);
    border-radius: 6px 0 0 6px;
    padding: 1em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    align-items: center;
    .progress-bar__container {
        .progress-bar__item {
            position: relative;
            list-style: none;
            font-size:0.75em;
            height:5em;
            padding-left:3em;
            &::before {
                content:"";
                display:inline-block;
                position: absolute;
                width: 20px;
                height: 20px;
                border:1.5px dashed $color__theme-lighten-2;
                border-radius: 100%;
                top:-3px;
                left: 0;
            }
            &:last-child::after {
                content: unset;
            }
            .link {
                text-decoration: none;
                color:$color__theme-lighten-2;
            }
            &.complete {
                &::before {
                    border:1px solid $color__theme-darker;
                    background: $color__theme-darker;
                    //animation: expand 500ms ease-in-out;
                    
                }
                &::after {
                    content:"";
                    display:block;
                    position: absolute;
                    width: 0px;
                    height: 2.5em;
                    border:1px dashed $color__theme-darker;
                    top:1.8em;
                    left: 10px;
                    animation: linearGradual 300ms ease-out;
                }
                &:last-of-type::after {
                     content:none;
                }
                .link {
                    color:$color__theme-darker;
                }
            }
            &.current {
                a {
                    color:$color__theme-darker;
                }
                &::after {
                    content:"";
                    display: block;
                    width: 17px;
                    height: 17px;
                    background:$color__theme-darker;
                    border-radius: 100%;
                    position: absolute;
                    top:0px;
                    left:3px;
                }
                &::before {
                    border-color: $color__theme-darker;
                }

            }
        }
    }
}
.tab-panel {
    display:block;
    //position: absolute;
    width: 100%;
    height: 100%;
    padding:2em;
    border:transparent;
    legend {
       font-size:21px;
       padding-top:32px;
       color:$color__theme;
       font-weight: 700;
       text-transform: uppercase;
    }
}

.submit-button {
    width: 100%;
}
.input-group {
    margin-bottom:1.5em;
    position:relative;
    height:auto;
    input[type="text"],input[type="email"], 
    input[type="password"],input[type="url"],
    input[type="date"], select {
        background:$color__bg-input;
        height: 32px;
        width: 250px;
        padding:0 1em;
        border:transparent;
        border-radius: 6px;
        &:focus {
            border-color:$color__border-button-focus;
            background-color:$color__theme-lighten-2;
        }
        option {
            color:$color__theme-darker;
        }
    }
    .input {
        font-family: 'Source Sans Pro', sans-serif;
        color:$color__text-main;
    }
    .label {
        position: absolute;
        top:9px;
        left: 1em;
        font-size:0.75em;
        transition:all 500ms ease-in-out;
    }
    &.focus {
        .label {
            top:-13.5px;
            font-size:0.65em;
            left:0;
        }
    }

    &.error {
        .label, .label-radio {
            color:$color__theme-error-lighten;
        }
        input, select {
            border:1.5px solid $color__theme-error-lighten;
        }
    }
    &.radio {
        input[type="radio"] {
            display: none;
            &:checked + .label-radio {
                &::after {
                    content: "";
                    display: block;
                    width: 16px;
                    height: 16px;
                    background:$color__theme;
                    border-radius: 100%;
                    position: absolute;
                    top:10px;
                    left:4px;
                    animation: expand 500ms linear;
                }
            }
        }

        .label-radio {
            position: relative;
            display:inline-block;
            width: auto;
            margin-left:1em;
            padding: 0.5em 0;
            font-size:0.75em;
            
            &:first-of-type {
                margin-left: 0;
            }
            &:before {
                content:"";
                display: inline-block;
                width:20px;
                height: 20px;
                border-radius: 100%;
                border:2px solid $color__text-main;
            }
        }
    }
}

.tab-nav {
    position: absolute;
    top:0;
    right: 1em;
    width: 2em;
    height: 100%;
    padding: 2em 0;
    display: flex;
    flex-wrap: wrap;

    .tab-nav__button {
        width: 32px;
        height: 32px;
        background-color:transparent;
        border:transparent;
        border-radius:6px;
        font-size: 1.2em;
				font-weight:900;
        cursor: pointer;
         transition:all 500ms ease-in;
        color:$color__theme;
        &.prev {
            align-self: flex-start;
        }
        &.next {
            align-self: flex-end;
        }
        &:hover {
           background-color:$color__theme;
           color:$color__theme-lighten-2;
            transition:all 500ms ease-in-out;
        }
        &:active {
            transform: skewX(5);
        }
    }
}

.button {
    width: 250px;
    padding: 0.5em;
    background: $color__theme;
    border-color:transparent;
    border-radius: 6px;
    color:$color__theme-lighten-2;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    font-size: 1.2em;
    letter-spacing: 2px;
    margin-bottom: 1em;
    transition:all 500ms ease-in;

    &:hover {
        background-color: $color__theme-darker;
        transition:all 1000ms ease-in-out;
    }
}

.submit-button {
    position: absolute;
    bottom:0.5em;
    left: 9.6em;
    display:none;
    opacity: 0;
    transition: all 500ms ease;
    &.active {
        display:block;
        opacity: 1;
        animation: show 500ms ease;
    }
}


.overlay {
    position: absolute;
    width: 350px;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    top:0;
    right: 0;
    span {
        font-size: 1em;
        &.load {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 2px solid $color__theme;
            border-radius: 100%;
            animation: load 1000ms infinite ease-in-out;

        }
        &.success {
            color:$color__theme-success;
        }
        
        
    }
}

@keyframes expand {
    0% {
        transform:scale(1.5);
    } 
    50% {
        transform:scale(2);
    } 
   100% {
         transform:scale(1);
    }
}
@keyframes linearGradual {
    0% {
        height: 0;
    } 
   100% {
       height: 1.5em;
    }
}
@keyframes show {
    0% {
        opacity: 0;
    } 
   100% {
       opacity:1 ;
    }
}

@keyframes load {
    0% {
        transform:scale(1);
    }
    20% {
        transform:scale(0.8);
    }
    50% {
        transform:scale(1.5);
    }
    80% {
        transform:scale(2.5);
    }
    100% {
        transform:scale(1.2);
    }
}

              
            
!

JS

              
                //Get all input elements of the form with a .input class
const getInputs = container => [...container.querySelectorAll('.input')];

//Get all fieldsets within the form element 

const getFieldsets = container => [...container.querySelectorAll('fieldset')];

//Get an Array with the distance of each fieldset element to apply a margin
const getArrayOfMargins = (fieldsetsContainer) => {
    return getFieldsets(fieldsetsContainer).map((fieldset, i) => fieldset.offsetHeight * i);

};



// Apply or add .focus class according if a element gain or loss its focus.
let inpustEvent = container => {
    
    getInputs(container).map(input =>{
    input.addEventListener("focusin" , e => {
        let inputParent = e.target.parentElement;

            if(!inputParent.classList.contains('focus')){
                inputParent.classList.add('focus');
            }
        });
        input.addEventListener("blur", e => {
            let inputParent = e.target.parentElement;
            if(input.required){
                if(e.target.value == ""){
                    inputParent.classList.replace('focus' , 'error');
                } else {
                    inputParent.classList.remove('error');
                }
            } else {
                if (e.target.value == "") {
                    inputParent.classList.remove('focus');
                }
            }
                
        });
        input.addEventListener('keydown' , e => {
            
            if(e.key === "Enter" || e.key === "Tab") {
                e.preventDefault();
                if (e.key === "Enter" ) {
                     container.querySelectorAll('.next')[0].click();
                }
               
            }
        });

    
    });
};
//Add function Navegation Prev and Next fr the fieldsets elements

let formNavigation = (buttonsContainer, fieldsetsContainer, progressBarContainer,i) => {
    let margins = getArrayOfMargins(fieldsetsContainer),
        margin,
        progressBarItems = [...progressBarContainer.querySelectorAll('li')];

    
    buttonsContainer.addEventListener("click" , e =>{

        e.preventDefault();

        let el = e.target,
            getFieldsetsLenght = getFieldsets(fieldsetsContainer).length;

        if(el.tagName === "BUTTON") {

            if (el.classList.contains("prev")) {
                
             

                        if (i > 0) { 
                            margin = -margins[i-1];
                            i--;
                        } else {
                            i =0;
                        }

                        fieldsetsContainer.style.marginTop = margin + "px";

                 
               
            } else if (el.classList.contains("next") ){
                
                if (formValidation(i, fieldsetsContainer, progressBarContainer)) {

                    if (i == (getFieldsetsLenght - 1) ) {

                       // margin = margins[0];
                        i = (getFieldsetsLenght - 1);
                        document.querySelectorAll('.submit-button')[0].classList.add('active');

                    } else {

                        margin = -margins[i+1];
                        i++;
                        
                    } 

                }
                fieldsetsContainer.style.marginTop = margin + "px" ;
            }
            
        }
        progressBarItems.forEach(element => {
            if (progressBarItems[i] === element){
                element.classList.add('current');
                if(element.classList.contains('complete')){
                    element.classList.remove('current');
                }
            } else {
                element.classList.remove('current');
            }
            
        });
    });
    progressBar(progressBarContainer, fieldsetsContainer);

};


//Add function navegation with the progress bar. 

let progressBar = (progressBarContainer, fieldsetsContainer) => {

    let links = [...progressBarContainer.querySelectorAll('a')],
        margins = getArrayOfMargins(fieldsetsContainer);

    progressBarContainer.addEventListener('click' , e => {
        e.preventDefault();
        if (e.target.tagName === "A" && (e.target.parentElement.classList.contains('complete') || e.target.parentElement.classList.contains('current'))){
            let index = links.indexOf(e.target);            
            fieldsetsContainer.style.marginTop = -margins[index] + "px";        
        }

    });
};
//Form Validation for each group of inputs within the fieldsets elements. Here you can add your own custom validation.

let formValidation = (i, fieldsetsContainer, progressBarContainer) => {

    let fieldsets = getFieldsets(fieldsetsContainer),
        currentFieldset= fieldsets[i],
        inputs = getInputs(currentFieldset);


    for (const key in inputs) {

        let input = inputs[key];
        if (input.required) {
                if (input.value != ""){

                input.parentElement.classList.remove('error');
                continue;

            } else {

                console.dir(input.required);
                input.parentElement.classList.add('error');
                return false;

            }
        }
       
    }
    progressBarContainer.querySelectorAll('li')[i].classList.add('complete');
  
    return true;

};

//Submit button. Here you can add ajax request.
let submit = (container,fieldsetsContainer) => {
  let submitButton = container.querySelectorAll("input[type='submit']");
  container.addEventListener('click' , e => {
      if (e.target.type === "submit" && e.target.tagName === "INPUT" ) {
        e.preventDefault();
        let overlay = document.createElement('div');
            overlay.classList.add('overlay');
          overlay.innerHTML = ` <span class="load"></span>`;
          container.appendChild(overlay);
          setTimeout(() => {
              overlay.innerHTML = ` <span class="success">✔ you have successfully registered</span>`;
          }, 2000);
    }
  });
   
};


const stepsforminit = container => {
    let form = container,
        fieldsetsContainer = container.querySelectorAll('#fieldset-container')[0],
        progressBarContainer = container.querySelectorAll('#progress-bar')[0],
        buttonsContainer = container.querySelectorAll('.tab-nav')[0],
        i=0;
    inpustEvent(form);
    formNavigation(buttonsContainer, fieldsetsContainer, progressBarContainer,i);
    submit(form, fieldsetsContainer);
};

stepsforminit(document.getElementById('form-wrapper'));
              
            
!
999px

Console