LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code


CSS
@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300);
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
body {
  font-family: 'Source Sans Pro', sans-serif;
  background-color: #fe4663;
  -webkit-transition-duration: 1s;
          transition-duration: 1s;
  -webkit-transition-timing-function: cubic-bezier(0.8, 0, 0.3, 1);
          transition-timing-function: cubic-bezier(0.8, 0, 0.3, 1);
  -webkit-animation: firstBg 3s alternate infinite ease;
}
@-webkit-keyframes firstBg {
  0% {
    background-color: #fe4663;
  }
  100% {
    background-color: #fe6646;
  }
}
@-webkit-keyframes secondBg {
  0% {
    background-color: #4070f0;
  }
  100% {
    background-color: #8540f0;
  }
}
body.step2 {
  background-color: #4070f0;
}
body.step2 .sec-bg {
  opacity: 1;
}
body.step2 nav ol li {
  color: #4070f0;
}
body.step2 .login-wrapper.first {
  opacity: 0;
  -webkit-transform: translateX(-100%);
}
body.step2 .login-wrapper.second {
  opacity: 1;
  -webkit-transform: translateX(0);
}
body.step2 .login-wrapper.second form {
  -webkit-animation: fadeUp 1s 1s 1;
  -webkit-animation-fill-mode: forwards;
          animation-fill-mode: forwards;
}
body.step2 .login-wrapper.third {
  opacity: 1;
  -webkit-transform: translateX(100%);
}
body.step3 {
  background-color: #e6e9ec;
}
body.step3 .sec-bg {
  opacity: 0;
}
body.step3 nav ol li {
  color: #fe4663;
}
body.step3 .login-wrapper.first {
  opacity: 0;
  -webkit-transform: translateX(-100%);
}
body.step3 .login-wrapper.second {
  opacity: 1;
  -webkit-transform: translateX(-100%);
}
body.step3 .login-wrapper.third {
  opacity: 1;
  -webkit-transform: translateX(0);
}
.sec-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-animation: secondBg 3s alternate infinite ease;
  -webkit-transition-duration: 1s;
          transition-duration: 1s;
  opacity: 0;
}
::-webkit-input-placeholder {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
}
.container {
  max-width: 400px;
  margin: 0 auto;
  position: relative;
  height: 400px;
  z-index: 2;
}
.login-wrapper {
  position: fixed;
  top: 50%;
  left: 0;
  margin-top: -200px;
  width: 100%;
  height: 400px;
  font-size: 16px;
  -webkit-transition-duration: 1s;
          transition-duration: 1s;
  -webkit-transition-timing-function: cubic-bezier(0.8, 0, 0.3, 1);
          transition-timing-function: cubic-bezier(0.8, 0, 0.3, 1);
}
.login-wrapper.first {
  opacity: 1;
  -webkit-transform: translateX(0);
}
.login-wrapper.first form {
  -webkit-animation: fadeUp 1s 1s 1;
  -webkit-animation-fill-mode: forwards;
          animation-fill-mode: forwards;
}
.login-wrapper.second {
  opacity: 0;
  -webkit-transform: translateX(100%);
}
.login-wrapper.second form input:focus {
  color: #4070f0;
}
.login-wrapper.third {
  opacity: 0;
  -webkit-transform: translateX(100%);
}
.login-wrapper h1 {
  color: white;
  text-align: center;
  font-weight: 200;
  position: relative;
  z-index: 3;
  font-size: 40px;
}
.login-wrapper #title {
  color: white;
  text-align: center;
  font-weight: 200;
  position: relative;
  z-index: 3;
  font-size: 30px;
  padding: 20px 0 40px 0;
}
.login-wrapper #title span {
  display: block;
  font-size: 40px;
  text-transform: capitalize;
  height: 0;
  opacity: 0;
  -webkit-transition-duration: 0.5s;
          transition-duration: 0.5s;
  -webkit-transition-timing-function: cubic-bezier(0.8, 0, 0.3, 1);
          transition-timing-function: cubic-bezier(0.8, 0, 0.3, 1);
}
.login-wrapper #title span.active {
  height: 40px;
  opacity: 1;
}
.login-wrapper a {
  color: rgba(255, 255, 255, 0.5);
  -webkit-transition-duration: 0.25s;
          transition-duration: 0.25s;
  display: block;
  text-align: right;
}
.login-wrapper a:hover {
  color: white;
}
form {
  opacity: 0;
}
@-webkit-keyframes fadeUp {
  0% {
    opacity: 0;
    -webkit-transform: translateY(50px);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateY(0);
  }
}
form .instruction {
  color: white;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 15px;
  margin-bottom: 20px;
}
form input {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  outline: none;
  padding: 10px 15px;
  display: block;
  width: 100%;
  border-radius: 5px;
  margin-bottom: 20px;
  box-shadow: none;
  font-size: 16px;
  color: white;
  -webkit-transition-duration: 0.25s;
          transition-duration: 0.25s;
}
form input:hover {
  border: 1px solid rgba(255, 255, 255, 0.4);
}
form input:focus {
  background-color: white;
  color: #fe4663;
  -webkit-animation: input-pulse 1s alternate infinite;
}
form input:focus::-webkit-input-placeholder {
  color: rgba(0, 0, 0, 0.5);
}
form button {
  font-family: 'Source Sans Pro', sans-serif;
  background-color: transparent;
  font-size: 16px;
  border: 0;
  outline: none;
  padding: 10px 15px;
  display: block;
  width: 100%;
  border-radius: 5px;
  box-shadow: none;
  color: white;
  cursor: pointer;
  margin-top: 40px;
  -webkit-transition-duration: 0.25s;
          transition-duration: 0.25s;
}
form button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
form button:active {
  text-shadow: 0 2px 1px rgba(0, 0, 0, 0.4);
}
nav {
  position: fixed;
  bottom: 0;
  left: 0;
  text-align: center;
  width: 100%;
  z-index: 3;
}
nav ol {
  padding: 20px;
}
nav ol li {
  display: inline-block;
  list-style: none;
  background-color: rgba(255, 255, 255, 0.2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin: 0 10px;
  color: #fe4663;
  font-size: 20px;
  font-weight: 200;
  -webkit-transition-duration: 1s;
          transition-duration: 1s;
  -webkit-transition-timing-function: cubic-bezier(0.8, 0, 0.3, 1);
          transition-timing-function: cubic-bezier(0.8, 0, 0.3, 1);
}
nav ol li.active {
  -webkit-transform: scale(1.2, 1.2);
  background-color: white;
}
JS
$('#next').click(function(e){
	e.preventDefault()
	$('body').addClass('step2');
	navNext();
});

$('#complete').click(function(e){
	e.preventDefault()
	$('body').removeClass('step2').addClass('step3');
	navNext();
});

function navNext() {
   $('nav .active')
		 .removeClass('active')
		 .next()
		 .addClass('active');
}

$('#name').on('keyup', function(){
	$("#title span").addClass('active').text($(this).val() + "!");
	
	if ($('#name').val().trim().length === 0) {
		$('#title span').text("").removeClass('active');
	}
});
Host Instantly Drag and Drop Website Builder

 

Description

A super simple account creation process, with some fun animations. [Chrome / Safari]
Term
Wed, 11/29/2017 - 11:26

Related Codes

Pen ID
Pen ID
Pen ID