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="container">
  <div class="row">
    <div class="main col-12">
       <h1 class="text-center">Wizard</h1>
       <div class="progress">
         <div id="p" class="progress-bar  bg-info" role="progressbar" aria-valuenow="0" aria-valuemin="0" ariavaluemax="100"></div>
       </div>
       <div class="block1">
         <div id="b1" class="text-center activecirculo">
           <i class="icon1"></i>
         </div>
       </div>
       <div id="block2A" class="block2">
         <div id="b2" class="text-center circulo">
           <i class="icon2"></i>
         </div>
       </div>
       <div id="block3A" class="block3">
         <div id="b3" class="text-center circulo">
           <i class="icon3"></i>    
         </div>
       </div>
       <div id="block4A" class="block4">
         <div id="b4"class="text-center circulo">
           <i id="icon4"></i>
         </div>
       </div>
      <!--Just to test!!!-->
      <div class="text-center next">
        <button onclick="enviar()" id="next1" class="next1 btn btn-primary">Next</button>
        <button onclick="enviar2()" id="next2" class="next2 btn btn-primary">Next</button>
        <button onclick="enviar3()" id="next3" class="next3 btn btn-primary">Next</button>
      </div>
    </div>
  </div>
</div>
            
          
!
            
              $white: #fff;
$aqua: #66ccff;
$gray: #eeeeee;
$sky: #283c86;
$light: #e2e2e2;

body {
  padding-top:60px;
  background: $sky;/*old browsers*/
  background: -webkit-linear-gradient(to right, $sky, $light); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, $sky, $light);/* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

.container {
  h1{
    color: $white;
    margin:15px;
    padding:15px;
  }
  
  .main {
    height:50%;
    
    .progress{
      margin: 20px;
      height:10px;
      background-color: $gray;
      
      .progress-bar{
        height:15px;
        color:$gray;
      }  
     }
    
    .progreso1{
      transition-delay: 4s;
      transition: all 0.45s ease-in-out;
      width: 34.333333%;
      animation: 0.5s;
      background-color: $aqua;
    
      @media (max-width:768px){
        width: 34%;
      }
    }
    
    .progreso2{
      width: 69.3333%;
      animation: 0.5s;
      background-color: $aqua;
      transition: all 0.45s ease;
      
      @media (max-width:768px){
        width: 73%;
      }
    }
    
    .progreso3{
      width: 100%;
      animation: 0.5s;
      background-color: $aqua;
      transition: all 0.45s ease;
    }
    
    .block1{
      position: absolute;
      margin: 0 0%;
      border-radius: 50%;
      background-color: $aqua;
      height: 50px;
      width: 50px;
      top: 0px;
      padding:4px;
      margin-top:90px;
    }
    
    .block2{
      position: absolute;
      margin: 0 33.33333333%;
      border-radius: 50%;
      background-color: $gray;
      height: 50px;
      width: 50px;
      top: 0px;
      padding: 4px;
      margin-top:90px;
      
      @media (max-width:768px){
        margin: 0 31.5%;
        margin-top:90px;
      }
    }
    
    .block3{
      position: absolute;
      margin: 0 66.3333333%;
      border-radius: 50%;
      background-color: $gray;
      height: 50px;
      width: 50px;
      top:0px;
      padding: 4px;
      margin-top:90px;
      
      @media (max-width:768px){
        margin: 0 62.5%;
        margin-top:90px; 
      }
    }
     
    .block4{
      position: absolute;
      margin: 0 92.5%;
      border-radius: 50%;
      background-color: $gray;
      height: 50px;
      width: 50px;
      top:0px;
      padding: 4px;
      margin-top:90px;
      
       @media (max-width:570px){
        margin: 0 86.5% !important;
        margin-top:90px!important ; 
      }
      
      @media (max-width:768px){
        margin: 0 90.5%;
        margin-top:90px; 
      }
    }
    
    .circulo{
      border-radius: 50%; 
      height: 30px; 
      width:30px;
      background-color: $gray;
      top:0px;
      margin:6px;
    }
    
    .fa-check{
      font-size: 14px;
      color: $white;
      padding: 2.5px;
    }
    
    .activeblock2{
      position: absolute;
      margin: 0 33.33333%;
      border-radius: 50%;
      background-color: $aqua !important;
      height: 50px;
      width: 50px;
      top:0px;
      padding: 4px;
      margin-top:90px; 
    }
    
    .activeblock3{
      position: absolute;
      margin: 0 65%;
      border-radius: 50%;
      background-color: $aqua;
      height: 50px;
      width: 50px;
      top:0px;
      padding: 4px;
      margin-top:90px; 
    }
    
    .activeblock4{
      position: absolute;
      margin: 0 93%;
      border-radius: 50%;
      background-color: $aqua;
      height: 50px;
      width: 50px;
      top:0px;
      padding: 4px;
      margin-top:90px; 
      
      @media (max-width:768px){
        margin: 0 90.7%;
         margin-top:90px; 
      }
      @media (min-width:510px) and (max-width:600px){
        margin: 0 89.5%;
         margin-top:90px; 
      }
       @media (min-width:368px) and (max-width:509px){
        margin: 0 86%;
         margin-top:90px; 
      }
      @media (min-width:200px) and (max-width:367px){
        margin: 0 86%;
         margin-top:90px; 
      }
      
    }
    
    .activecirculo{
      border-radius: 50%; 
      height: 30px; 
      width: 30px;
      background-color: $aqua; 
      border: solid 4px $white;
      margin: 6px;
     
    }  
  }
}

/**
This is just to test, but you don't need it.
*/
.next{
  margin-top:50px;
  
  .next2{
    display:none;
  }
  .next3{
    display:none;
  }
}
            
          
!
            
              /*
The purpose of these functions is test this wizard. (Dont use them!!, I won't do it)
You could implement a more elegant solution. 
**/

function enviar() {
    $(document).ready(function () {
      $('#block2A').removeClass("block2").addClass( "activeblock2" );
      $( "#b2" ).removeClass( "circulo" ).addClass( "activecirculo");
      $('#p').addClass("progreso1");
      $('.icon1').addClass("fa fa-check");
      $('#next1').hide();
      $('#next2').show();
    });
  
  }

  function enviar2() {
    $(document).ready(function () {
      $('#p').addClass("progreso2");
      $('#block3A').removeClass("block3").addClass( "activeblock3");
      $( "#b3" ).removeClass( "circulo" ).addClass( "activecirculo");
      $('.icon2').addClass("fa fa-check");
      $('#next2').hide();
      $('#next3').show();
    });
  }

  function enviar3(){
    $('#p').addClass("progreso3");
    $('.icon3').addClass("fa fa-check");
    $('#block3A').removeClass("block3").addClass( "activeblock3");
    $( "#b3" ).removeClass( "circulo" ).addClass( "activecirculo");
    $('#block4A').removeClass("block4").addClass( "activeblock4");
    $( "#b4" ).removeClass( "circulo" ).addClass( "activecirculo");
    $('#next3').hide();
  }
            
          
!
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.

Console