123

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.

            
              <section class="container">
		    <article class="half">
			        <h1>Azure</h1>
			        <div class="tabs">
				            <span class="tab signin active"><a href="#signin">Sign in</a></span>
				            <span class="tab signup"><a href="#signup">Sign up</a></span>
			        </div>
			        <div class="content">
				            <div class="signin-cont cont">
					                <form action="#" method="post" enctype="multipart/form-data">
						                    <input type="email" name="email" id="email" class="inpt" required="required" placeholder="Your email">
						                    <label for="email">Your email</label>
						                    <input type="password" name="password" id="password" class="inpt" required="required" placeholder="Your password">
                						    <label for="password">Your password</label>
						                    <input type="checkbox" id="remember" class="checkbox" checked>
						                    <label for="remember">Remember me</label>
						                    <div class="submit-wrap">
							                        <input type="submit" value="Sign in" class="submit">
							                        <a href="#" class="more">Forgot your password?</a>
						                    </div>
        					        </form>
    				        </div>
    				        <div class="signup-cont cont">
                <form action="#" method="post" enctype="multipart/form-data">
						                    <input type="name" name="name" id="name" class="inpt" required="required" placeholder="Your name">
						                    <label for="name">Your name</label>
                    <input type="email" name="email" id="email" class="inpt" required="required" placeholder="Your email">
						                    <label for="email">Your email</label>
						                    <input type="password" name="password" id="password" class="inpt" required="required" placeholder="Your password">
                						    <label for="password">Your password</label>
						                    <div class="submit-wrap">
							                        <input type="submit" value="Sign up" class="submit">
							                        <a href="#" class="more">Terms and conditions</a>
						                    </div>
        					        </form>
            </div>
			        </div>
		    </article>
		    <div class="half bg"></div>
	</section>
            
          
!
            
              @import "compass/css3";

@import url(https://fonts.googleapis.com/css?family=Lato:400,700);

$bg: #f8f8f8;
$white: #ffffff;
$blue: #263238;
$grey: #d9d9d9;
$plchldr: #999999;

* {@include box-sizing(border-box); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;}

@mixin placeholder {
	&::-webkit-input-placeholder {@content;}
	&:-moz-placeholder {@content;}
	&::-moz-placeholder {@content;}
	&:-ms-input-placeholder {@content;}
}
body {
    font-family: 'Lato', sans-serif;
    background-color: $bg;
    .container {
        position: relative;
        overflow: hidden;
        width: 700px;
        height: 500px;
        margin: 80px auto 0;
        background-color: $white;
        @include box-shadow(rgba(0,0,0,.1) 0px 10px 30px);
        .half {
            float: left;
            width: 50%;
            height: 100%;
            padding: 58px 40px 0;
            &.bg {
                //background: url(https://i.imgur.com/J2JddJ4.jpg);
                background-image:url("https://s7.postimg.org/boj7tcxhn/image.jpg");
                background-size: 400px;
                background-repeat: no-repeat;
            }
        }
        h1 {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 23px;
            text-align: center;
            text-indent: 6px;
            letter-spacing: 7px;
            text-transform: uppercase;
            color: $blue;
        }
        .tabs {
            width: 100%;
            margin-bottom: 29px;
            border-bottom: 1px solid $grey;
            .tab {
                display: inline-block;
                margin-bottom: -1px;
                padding: 20px 15px 10px;
                cursor: pointer;
                letter-spacing: 0;
                border-bottom: 1px solid $grey;
                @include user-select(none);
                transition: all 0.1s ease-in-out;
                a {
                    font-size: 11px;
                    text-decoration: none;
                    text-transform: uppercase;
                    color: $grey;
                    transition: all 0.1s ease-in-out;
                }
                &.active,&:hover {
                    a {
                        color: $blue;
                    }
                }
                &.active {
                    border-bottom: 1px solid $blue;
                }
            }
        }
        .content {
            form {
                position: relative;
                height: 287px;
            }
            label, input, .more {
                &:first-of-type {
                    @include animation(slideIn 0.4s cubic-bezier(0.37, 0.82, 0.2, 1));
                }
                &:nth-of-type(2) {
                    @include animation(slideIn 0.5s cubic-bezier(0.37, 0.82, 0.2, 1));
                }
                &:nth-of-type(3) {
                    @include animation(slideIn 0.6s cubic-bezier(0.37, 0.82, 0.2, 1));
                }
            }
            label {
                font-size: 12px;
                color: $blue;
                @include user-select(none);
                &:not([for='remember']) {
                    display: none;
                }
            }
            input {
                &.inpt {
                    font-size: 14px;
                    display: block;
                    width: 100%;
                    height: 42px;
                    margin-bottom: 12px;
                    padding: 16px 13px;
                    color: $plchldr;
                    border: 1px solid $grey;
                    background: transparent;
                    @include border-radius(2px);
                    @include placeholder {
                        font-size: 14px;
                        color: $plchldr;
                        font-family: 'Lato', sans-serif;
                    };
                    &:focus {
                        border-color: $plchldr;
                    }
                }
                &.submit {
                    font-size: 12px;
                    line-height: 42px;
                    display: block;
                    width: 100%;
                    height: 42px;
                    cursor: pointer;
                    vertical-align: middle;
                    letter-spacing: 2px;
                    text-transform: uppercase;
                    color: $blue;
                    border: 1px solid $blue;
                    background: transparent;
                    @include border-radius(2px);
                    &:hover {
                        background-color: $blue;
                        color: $white;
                        @include transition(all 0.2s);
                    }
                }
                &:focus {
                    outline: none;
                }
            }
            .checkbox {
                margin-top: 4px;
                overflow: hidden;
                clip: rect(0 0 0 0);
                width: 0; height:0;
                margin: 17px -1px; padding: 0;
                border: 0;
                opacity: 0;
                visibility: hidden;
                & + label {
                    vertical-align: middle;
                    display: inline-block;
                    width: 50%;
                    &:before {
                        content: "\A";
                        color: $plchldr;
                        font-family: Verdana;
                        font-weight: bold;
                        font-size: 8px;
                        line-height: 10px;
                        text-align: center;
                        display: inline-block;
                        vertical-align: middle;
                        position:relative;
                        @include border-radius(2px);
                        background: transparent;
                        border: 1px solid $grey;
                        width: 11px; height: 11px;
                        margin: -2px 8px 0 0;
                    }
                }
                &:checked + label {
                    &:before {
                        content: "✓";
                    }
                }
            }
            .submit-wrap {
                position: absolute;
                bottom: 0;
                width: 100%;
                a {
                    font-size: 12px;
                    display: block;
                    margin-top: 20px;
                    text-align: center;
                    text-decoration: none;
                    color: $plchldr;
                    &:hover {
                        text-decoration: underline;
                    }
                }
            }
            .signup-cont { display: none; }
        }
    }
}
@keyframes slideIn {
    0% {
        @include opacity(0);
        margin-left: -320px;
    }
    100% {
        @include opacity(1);
        margin-left: 0px;
    }
}

@-webkit-keyframes slideIn {
    0% {
        @include opacity(0);
        margin-left: -320px;
    }
    100% {
        @include opacity(1);
        margin-left: 0px;
    }
}

.credits {
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    color: $plchldr;
    font-size: 14px;
    margin: 0 10px 10px 0;
    a {
        @include opacity(0.8);
        color: inherit;
        font-weight: 700;
        text-decoration: none;
    }
}
            
          
!
            
              $('.tabs .tab').click(function(){
    if ($(this).hasClass('signin')) {
        $('.tabs .tab').removeClass('active');
        $(this).addClass('active');
        $('.cont').hide();
        $('.signin-cont').show();
    } 
    if ($(this).hasClass('signup')) {
        $('.tabs .tab').removeClass('active');
        $(this).addClass('active');
        $('.cont').hide();
        $('.signup-cont').show();
    }
});
$('.container .bg').mousemove(function(e){
    var amountMovedX = (e.pageX * -1 / 30);
    var amountMovedY = (e.pageY * -1 / 9);
    $(this).css('background-position', amountMovedX + 'px ' + amountMovedY + 'px');
});
            
          
!
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