LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code
Watch Me Coding This
CSS
@import url("https://fonts.googleapis.com/css?family=Roboto:400,500");
.youtube {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 60px;
  color: #333aa5;
  background-color: #ffffff;
  padding: 0px 8px;
  border-radius: 6px;
}
.youtube:hover {
  color: #f82363;
}

body {
  background-color: #1d2063;
}

.formContainer {
  position: relative;
  height: 450px;
  width: 400px;
  margin: auto;
  position: fixed;
  border-radius: 8px;
  overflow: hidden;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}
.formContainer .logo {
  height: 150px;
  width: 150px;
  margin: auto;
  font-size: 140px;
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff;
  font-family: "Roboto", sans-serif;
}
.formContainer .input-group {
  position: relative;
  margin-bottom: 20px;
}
.formContainer .input-group i.fa {
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  height: 20px;
  width: 20px;
  text-align: center;
  line-height: 20px;
  font-size: 14px;
  color: #ffffff;
  left: 4px;
}
.formContainer .input-group input {
  width: 100%;
  box-sizing: border-box;
  border: none;
  height: 30px;
  outline: none;
  background-color: transparent;
  border-bottom: 1px solid white;
  font-family: 'Roboto', sans-serif;
  color: #ffffff;
  padding-left: 30px;
}
.formContainer .input-group input::placeholder {
  color: #ffffff;
}
.formContainer button[type="submit"] {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 50px;
  background-color: #ffffff;
  font-size: 16px;
  text-transform: uppercase;
  margin-top: 20px;
  font-weight: 500;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 4px;
  color: #f82363;
}

.signin {
  position: relative;
  top: 0;
  transition: all ease 0.5s;
}
.signin form {
  background-color: #f82363;
  padding: 32px 20px;
}

.signup {
  position: relative;
  top: 0;
  transition: all ease 0.5s;
}
.signup form {
  background-color: #333aa5;
  padding: 34px 20px;
}
.signup form .logo {
  font-size: 50px;
  height: 60px;
  width: 60px;
}
.signup form button[type="submit"] {
  color: #333aa5;
}

/*toggle link*/
#signup {
  position: relative;
  display: block;
  text-align: center;
  padding: 20px 10px;
  text-decoration: none;
  text-transform: uppercase;
  background-color: #333aa5;
  color: #ffffff;
  font-family: "Roboto", sans-serif;
}

#signup.active {
  background-color: #f82363;
}

/*toogle classes*/
.signin.moveup {
  top: -87.5%;
}

.signup.moveup {
  top: -87.5%;
}

/*link*/
.info {
  position: fixed;
  bottom: 10px;
  left: 10px;
  text-align: center;
  color: #fff;
  width: 150px;
  font-size: 1.2rem;
  line-height: 1;
}
.info a {
  margin-top: 20px;
  font-size: 3rem;
  display: block;
  color: red;
}
JS
$(document).ready(function(){
  $("#signup").on('click',function(){
    var text = $(this).text();
    $(".signin").toggleClass('moveup');
    $(".signup").toggleClass('moveup');
    $(this).text(
      text == "sign up"?"sign in":"sign up"
    ).toggleClass("active");
    
  });
});
Term
Sat, 01/13/2018 - 16:14

Related Codes

Pen ID
Pen ID
Pen ID
Square Adv