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

              
                <div class="logcontainer">
	<form class="signUp">
		<h3>Форма регистрации</h3>
		<p>Заполните все необходимые поля</p>
		<input class="w100" type="email" placeholder="Ваш e-mail" reqired autocomplete='off' />
		<input type="password" placeholder="Придумайте пароль" reqired />
		<input type="password" placeholder="Повторите пароль" reqired />
		<button class="form-btn sx log-in" type="button">Войти</button>
		<button class="form-btn dx" type="submit">Создать</button>
	</form>
	<form class="signIn">
		<h3>С возвращением!</h3>
		<button class="fb" type="button">Войти через Facebook</button>
		<p>- или -</p>
		<input type="email" placeholder="Введите e-mail" autocomplete='off' reqired />
		<input type="password" placeholder="Введите пароль" reqired />
		<button class="form-btn sx back" type="button">Назад</button>
		<button class="form-btn dx" type="submit">Войти</button>
	</form>
</div>
              
            
!

CSS

              
                body {
	background: #ffc185;
}

.logcontainer {
	position: absolute;
	width: auto;
	height: auto;
	top: calc(50% - 240px);
	left: calc(50% - 160px);
}

.logcontainer form {
	position: absolute;
	text-align: center;
	background: #fff;
	width: 310px;
	height: 470px;
	border-radius: 5px;
	padding: 30px 20px 0 20px;
	box-shadow: 0 10px 50px 0 rgba(0, 0, 0, 0.25);
	box-sizing: border-box;
}

.logcontainer p {
	font-family: 'Roboto', sans-serif;
	font-weight: 100;
	text-transform: uppercase;
	font-size: 12px;
	color: #87613d;
	margin-bottom: 40px;
}

.logcontainer p > span {
	padding-top: 3px;
	display: block;
	font-weight: 400;
	font-size: 9px;
}

.logcontainer h3 {
	font-size: 25px;
	text-transform: uppercase;
	color: #87613d;
	margin-bottom: 30px;
}

.logcontainer input,
.logcontainer button {
	outline: none !important;
}

.logcontainer button.fb {
	border: none;
	background: #3b5998;
	width: 190px;
	height: 25px;
	font-family: 'Roboto', sans-serif;
	font-size: 12px;
	color: #fff;
	text-transform: uppercase;
	border-radius: 4px;
	border: 1px solid #29487d;
	cursor: pointer;
	margin-bottom: 20px;
	transition: all 0.3s linear;
}

.logcontainer button.fb:hover {
	background: #fff;
	color: #3b5998;
}

.logcontainer button.form-btn {
	position: absolute;
	width: 50%;
	height: 60px;
	bottom: 0;
	border: 0;
	font-family: 'Dosis';
	font-size: 24px;
	text-transform: uppercase;
	cursor: pointer;
}

.logcontainer button.form-btn.sx {
	left: 0;
	border-radius: 0 0 0 5px;
	background-color: rgba(255, 125, 0, 0.35);
	color: #fff;
	transition: all 0.3s linear;
}

.logcontainer button.form-btn.sx:hover {
	background-color: rgba(255, 125, 0, 0.65);
	color: #fff;
}

.logcontainer button.form-btn.sx.back {
	background-color: rgba(0, 0, 0, 0.15);
	transition: all 0.3s linear;
}

.logcontainer button.form-btn.sx.back:hover {
	background-color: rgba(0, 0, 0, 0.35);
}

.logcontainer button.form-btn.dx {
	right: 0;
	border-radius: 0 0 5px 0;
	background-color: #ff7d00;
	color: #fff;
}

.logcontainer input {
	border: none;
	border-bottom: 1px solid #ffc185;
	width: 85%;
	font-family: 'Roboto';
	color: #ff7d00;
	text-align: center;
	font-size: 21px;
	font-weight: 100;
	margin-bottom: 25px;
}

.logcontainer ::-webkit-input-placeholder {
	color: #ffc185;
	font-family: 'Roboto';
	font-weight: 100;
}

.logcontainer :-moz-placeholder {
	color: #ffc185;
	font-family: 'Roboto';
	font-weight: 100;
}

.logcontainer ::-moz-placeholder {
	color: #ffc185;
	font-family: 'Roboto';
	font-weight: 100;
}

.logcontainer :-ms-input-placeholder {
	color: #ffc185;
	font-family: 'Roboto';
	font-weight: 100;
}

.logcontainer .signIn input,
.logcontainer .signUp .w100 {
	width: 100%;
}

.logcontainer .signIn {
	z-index: 1;
	transform: perspective(100px) translate3d(100px, 0px, -30px);
	opacity: 0.5;
}

.logcontainer .signUp {
	z-index: 2;
}

.logcontainer .active-dx {
	animation-name: foregrounding-dx;
	animation-duration: 0.9s;
	animation-fill-mode: forwards;
}

.logcontainer .active-sx {
	animation-name: foregrounding-sx;
	animation-duration: 0.9s;
	animation-fill-mode: forwards;
}

.logcontainer .inactive-dx {
	animation-name: overshadowing-dx;
	animation-duration: 0.9s;
	animation-fill-mode: forwards;
}

.logcontainer .inactive-sx {
	animation-name: overshadowing-sx;
	animation-duration: 0.9s;
	animation-fill-mode: forwards;
}

@keyframes overshadowing-dx {
	0% {
		z-index: 2;
		transform: perspective(100px) translate3d(0px, 0px, 0px);
		opacity: 1;
		box-shadow: 0 10px 50px 0 rgba(0, 0, 0, 0.25);
	}
	100% {
		z-index: 1;
		transform: perspective(100px) translate3d(100px, 0px, -30px);
		opacity: 0.5;
		box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.25);
	}
}

@keyframes overshadowing-sx {
	0% {
		z-index: 2;
		transform: perspective(100px) translate3d(0px, 0px, 0px);
		opacity: 1;
		box-shadow: 0 10px 50px 0 rgba(0, 0, 0, 0.25);
	}
	100% {
		z-index: 1;
		transform: perspective(100px) translate3d(-100px, 0px, -30px);
		opacity: 0.5;
		box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.25);
	}
}

@keyframes foregrounding-dx {
	0% {
		z-index: 1;
		transform: perspective(100px) translate3d(100px, 0px, -30px);
		opacity: 0.5;
	}
	50% {
		z-index: 2;
		transform: perspective(100px) translate3d(400px, 0px, -30px);
	}
	100% {
		z-index: 2;
		transform: perspective(100px) translate3d(0px, 0px, 0px);
		opacity: 1;
	}
}

@keyframes foregrounding-sx {
	0% {
		z-index: 1;
		transform: perspective(100px) translate3d(-100px, 0px, -30px);
		opacity: 0.5;
	}
	50% {
		z-index: 2;
		transform: perspective(100px) translate3d(-400px, 0px, -30px);
	}
	100% {
		z-index: 2;
		transform: perspective(100px) translate3d(0px, 0px, 0px);
		opacity: 1;
	}
}
              
            
!

JS

              
                $("button.log-in").click(function(){
	$(".signIn").addClass("active-dx");
	$(".signUp").addClass("inactive-sx");
	$(".signUp").removeClass("active-sx");
	$(".signIn").removeClass("inactive-dx");
});

$("button.back").click(function(){
	$(".signUp").addClass("active-sx");
	$(".signIn").addClass("inactive-dx");
	$(".signIn").removeClass("active-dx");
	$(".signUp").removeClass("inactive-sx");
});
              
            
!
999px

Console