cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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.

            
              <div class="vertical-form-container">
  <div class="vertical-form">
    <div class="step active">
      <div class="title">Let's start</div>
      <div class="content">...by saying that you're awesome</div>
    </div>
    <div class="step step-2 next">
      <div class="title">Inspirational lorem</div>
      <div class="content">..is more than just ipsum</div>
    </div>
    <div class="step step-3">
      <div class="title">It's done</div>
      <div class="content">Have a fantastic day</div>
    </div>
    <i class="material-icons">arrow_downward</i>
 </div>
</div>
            
          
!
            
              body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-color: lighten(#02A8F3, 30%);
    cursor: url('https://image.ibb.co/nofzfk/cursor_smallest.png') 20 20, auto;
}

.vertical-form-container {
  height: 400px; width: 300px;
  position: relative;
  
  &:after {
    content: ' ';
    position: absolute;
    top: calc(100% + 5px); left: 0;
    display: inline-block;
    height: 30px; width: 100%;
    background-color: rgba(0,0,0,.25);
    border-radius: 50%;
    filter: blur(10px);
    
    z-index: 1;
  }
  
}
.vertical-form {
  height: 100%; width: 100%;
  background-color: #eee;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
 
  .step {
    position: absolute;
    top: 0; left: 0;
    height: 100%; width: 100%;
    visibility: hidden;
    background-color: #02A8F3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: Helvetica, sans-serif;
    
    .title {
      font-size: 24px;
      margin-bottom: 16px;
    }
    
    
    > * {
      opacity: 0;
      transition: opacity 0.3s ease;
    }
    
    &.step-2 {
      background-color: darken(#02A8F3, 10%);
    }
    
    &.step-3 {
      background-color: darken(#02A8F3, 20%);
    }
    
    
    &.active {
      visibility: visible;
      transform: translateY(0);
      z-index: 2;
      
      > * {
        opacity: 1;
      }
    }
    
    &.previous {
      visibility: visible;
      transform: translateY(-100%);
    }
    
    &.next {
      visibility: visible;
      transform: translateY(calc(100% - 67px)) scaleX(1.3333);
      border-radius: 50%;
      z-index: 2;
 
    }
    
    &.sliding-out {
      animation: slidingOut 1s ease forwards;
      
      @keyframes slidingOut {
        from {
          transform: translateY(0);
        }
        to {
          transform: translateY(-100%);
        }
      }
    }
    
        &.sliding-in {
      animation: slidingIn 1s ease forwards;
      
      @keyframes slidingIn {
        from {
          transform: translateY(calc(100% - 67px)) scaleX(1.3333);
          border-radius: 50%;
        }
        to {
          transform: translateY(0) scaleX(1);
          border-radius: 0;
        }
      }
    }
    
    
  }
  
      i {
      position: absolute;
      bottom: 47px;
      left: 50%;
      transform: translateX(-50%);
      border-radius: 50%;
      padding: 8px;
      background-color: white;
      box-shadow: 0 1px 0 black;
      z-index: 3;
        
        &.animating {
          animation: animating 1s linear;
          
          @keyframes animating {
            0% {
              transform: translateY(0) translateX(-50%);
              opacity: 1
            }
            15% {
              transform: translateY(-100%) translateX(-50%);
              opacity: 0;
            }
            85% {
              transform: translateY(100%) translateX(-50%);
              opacity: 0;
            }
            100% {
              transform: translateY(0) translateX(-50%);
              opacity: 1;
            }  
          
          }
        }
    }
}

            
          
!
            
              $('i').on('click', function(){
  
  if($(this).text() == 'check'){
    return false;
  }
  
  $(this).addClass('animating');
  
  var activeStep = $('.step.active');
  activeStep.addClass('sliding-out');
  var nextStep = activeStep.next('.step');
  nextStep.addClass('sliding-in');
  nextStep.on('animationend', function(){
    $(this).off('animationend');
    activeStep.removeClass('active sliding-out').addClass('previous');
    $(this).removeClass('next sliding-in').addClass('active');
    $('i').removeClass('animating');
    
    if(!$(this).next('.step').length){
      $('i').html('check');
    }
    else {
      $(this).next('.step').addClass('next');
    }

  })
  
})
            
          
!
999px
Loading ..................

Console