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

              
                <body>

<div class="container">
      <div class="content">

        <div class="login-container animated fadeInDown" style="animation-delay:.3s;">
         <!--   Login   --> 
            <div class="login justify-content-center" id="login-form">
              <h1 class="form-title"><i class="fas fa-user" style="color:#55a0ff;"></i> <br> LOGIN  <hr></h1>
       
               <div class="form-container animated fadeIn" style="animation-delay:.7s;">
                <form method="POST" action="{{ route('login') }}">
                   
                    <label for=""><i class="fas fa-at"></i> Email </label>
                    <input type="email" name="email" placeholder="E-mail">
                    
                    <label for=""><i class="fab fa-slack-hash"></i> Password </label>
                    <input type="password" name="password" placeholder="Password">
                    
                    <div class="submit-buttons">
                        <input type="submit" value="Connect">
                        <input type="button" value="Sign Up" class="btn-register">
                    </div>
                    
                </form>
              </div>
            </div>
            <!--   Login   --> 
            
            <!--    Register    -->
             
            <div class="register justify-content-cente animatedr"  style="animation-delay:.3s">
              <h1 class="form-title "><i class="fas fa-user-plus" style="color:#57efc4;"></i> <br> REGISTER <hr></h1>
       
               <div class="form-container animated fadeIn" style="animation-delay:.7s;">
                <form method="POST" action="{{ route('register') }}">
                   
                    
                    <label for=""><i class="fab fa-amilia"></i> Name </label>
                     <input  type="text" name="name" placeholder="Name" required autofocus>
                    
                    <label for=""><i class="fas fa-at"></i> Email </label>
                    <input type="email" name="email" placeholder="E-mail">
                    
                    <label for=""><i class="fab fa-slack-hash"></i> Password </label>
                    <input type="password" name="password" placeholder="Password">
                    
                    <label for=""><i class="fab fa-slack-hash"></i> Confirm Password </label>
                    <input type="password" name="password_confirmation"  placeholder="Password">
                    
                    <div class="submit-buttons">
                        <input type="submit" value="Register" style="background:#55efc4;">
                        <input type="button" value="Sign In"  class="btn-login">
                    </div>
                    
                </form>
              </div>
            </div>
            
            <!--    Register    -->
            
            <div class="login animated fadeIn" style="animation-delay:.7s;animation-duration:4s;" id="login-bg"></div>
            
        </div>
        
      </div> 
    </div>

</body>
              
            
!

CSS

              
                body{
  background:#f8fafc;
}

.content{
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
    
    .login-container{
        background: white;
        position: relative;
        border-radius: 5px;
        display: flex;
        width: 70vw;
        height: 70vh;
        box-shadow: 0 19px 38px rgba(0, 0, 0, 0.07);
        transition: .4s;
    }
    
    
    .login{
        transition: .4s;
        font-family: Comfortaa;
    }
    
    .login#login-form{
        width: 50%;
        display: block;
        padding: 15px;
        align-items: center;
        text-align: center;
        position: relative;
        margin-top: 20px;
    }
    
    .login#login-bg{
        width: 50%;
        display: inline-flex;
        background: url(https://picsum.photos/700);
        background-size: cover;
        background-position: center center;
        float: right;
        border-radius: 0 5px 5px 0;
    }
    
    .register{
        width: 50%;
        display: block;
        padding: 15px;
        align-items: center;
        text-align: center;
        position: relative;
        margin-top: 30px;
        transition: .4s;
        font-family: Comfortaa;
        display: none;
    }
    
    
    .form-title{
       position: absolute;
       top: 11%;
       left: 0;
       right: 0;
       text-align: center;
       color: #dedede;
       font-size: 2.2em;
       font-family: Spartan;
       line-height: 1.4;
       margin-top: -24px;
    }
    
    .form-title hr{
        width: 75%;
        border: 2px solid #dedede1f;
        border-radius: 10px;
        margin-top: 20px;
    }
    
    .register .form-title{
            margin-top: -54px;
    }
    
    
    .form-container{
        padding: 25px 10px;
        border-radius: 5px;
        width: 80%;
        text-align: left;
        margin-top: 70px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    
    label{
        font-size: .7em;
        color: #7392ff;
        margin: 0px 0 !important;
        margin-left: 4px !important;
    }
    
    input{
        background: #f8fafc ;
        border: 0;
        width: 100%;
        display: block;
        padding: 10px 15px;
        border-radius: 5px;
        margin-bottom: 20px !important;
        outline: 0;
        transition: .4s;
    }
    
    input::placeholder{
        opacity: .4;
    }
    
    .submit-buttons{
        display: flex;
    }
    
    .submit-buttons input{
        width: 50%;
        text-align: center;
        color: white;
        transition: .2s;
    }
    
    .submit-buttons input:hover{
        opacity: .7;
    }
    
    .submit-buttons input:nth-of-type(1){
        border-radius: 5px 0 0 5px;
        background: #54a0ff;
    }
    
    .submit-buttons input:nth-of-type(2){
        border-radius: 0 5px 5px 0;
        background: #c8d6e5;
    }
    
    @media (max-width:933px){
        .login#login-bg{
            width: 0;
        }
        
         .login#login-form,.register{
            width: 100%;
        }
        
        input{
            width: 100%;
        }
    }
              
            
!

JS

              
                
$(document).ready(function(){
   
    $('.btn-register').click(function(){
        
          setTimeout(function(){
            $('#login-form').removeClass('fadeIn');
            $('.register').removeClass(' zoomOut');
            $('#login-form').css('animation-delay','0');
            $('.register').css(' animation-delay','0');
            $   
        },10)
        
        $('#login-form').addClass('animated zoomOut');
        $('#login-form').css('display','none');
        $('.register').addClass('animated fadeIn');
        $('.register').css('display','block');
        $('.login-container').css('height','95vh');
    })  
    
    $('.btn-login').click(function(){
        setTimeout(function(){
            $('.register').removeClass('fadeIn');
            $('#login-form').removeClass(' zoomOut');
        },10)
        
        
        $('.register').addClass('animated zoomOut');
        $('.register').css('display','none');
        $('#login-form').addClass('animated fadeIn');
        $('#login-form').css('display','block');
        $('.login-container').css('height','70vh');
    }) 
    
})

              
            
!
999px

Console