LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code

Sign In

Don't have an account? Sign up here.

CSS
body {
  font-family: system, -apple-system, BlinkMacSystemFont, ".SFNSDisplay-Regular", "Helvetica Neue", Helvetica, Arial, sans-serif;
  min-height: 100vh;
  padding: 20px;
  background: linear-gradient(45deg, #13191f 0%, #263340 100%);
  background-repeat: no-repeat;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

a {
  color: #a67a2e;
}
a:hover, a:focus, a:active {
  color: #7e5d23;
}

.well {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
  -webkit-box-shadow: none;
          box-shadow: none;
  background: #fff;
  -webkit-box-shadow: 0px 6px 60px 0px rgba(38, 51, 64, 0.08);
          box-shadow: 0px 6px 60px 0px rgba(38, 51, 64, 0.08);
  border: none;
  border-radius: 6px;
  padding: 50px 60px;
}
.well h2 {
  font-size: 24px;
  font-weight: 300;
  margin-top: 0;
  margin-bottom: 40px;
  color: #263340;
}

.form-group {
  position: relative;
  margin-top: 25px;
  margin-bottom: 20px;
}
.form-group label {
  font-weight: 300;
  color: #c4cace;
  position: absolute;
  top: 50%;
  left: 0;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  -webkit-transition: all .2s ease-in-out;
  transition: all .2s ease-in-out;
}
.form-group input[type="text"].form-control,
.form-group input[type="password"].form-control,
.form-group input[type="email"].form-control {
  height: 48px;
  background: none;
  border-radius: 0;
  -webkit-box-shadow: none;
          box-shadow: none;
  font-weight: 300;
  color: #263340;
  padding-left: 0;
  padding-right: 0;
  border: none;
  border-bottom: 1px solid #ddd;
  -webkit-transition: all .1s ease-in-out;
  transition: all .1s ease-in-out;
  position: relative;
  z-index: 2;
}
.form-group input[type="text"].form-control:focus, .form-group input[type="text"].form-control:active,
.form-group input[type="password"].form-control:focus,
.form-group input[type="password"].form-control:active,
.form-group input[type="email"].form-control:focus,
.form-group input[type="email"].form-control:active {
  outline: none;
  -webkit-box-shadow: none;
          box-shadow: none;
  border: none;
}
.form-group input[type="text"].form-control:active + label, .form-group input[type="text"].form-control:focus + label, .form-group input[type="text"].form-control.active + label,
.form-group input[type="password"].form-control:active + label,
.form-group input[type="password"].form-control:focus + label,
.form-group input[type="password"].form-control.active + label,
.form-group input[type="email"].form-control:active + label,
.form-group input[type="email"].form-control:focus + label,
.form-group input[type="email"].form-control.active + label {
  color: #717e88;
  font-size: 11px;
  top: -10px;
  -webkit-transform: none;
          transform: none;
}
.form-group input[type="text"].form-control:active ~ .input-border, .form-group input[type="text"].form-control:focus ~ .input-border, .form-group input[type="text"].form-control.active ~ .input-border,
.form-group input[type="password"].form-control:active ~ .input-border,
.form-group input[type="password"].form-control:focus ~ .input-border,
.form-group input[type="password"].form-control.active ~ .input-border,
.form-group input[type="email"].form-control:active ~ .input-border,
.form-group input[type="email"].form-control:focus ~ .input-border,
.form-group input[type="email"].form-control.active ~ .input-border {
  width: 100%;
}
.form-group .input-border {
  display: block;
  width: 0%;
  height: 1px;
  background: #a67a2e;
  -webkit-transition: all .2s ease-in-out;
  transition: all .2s ease-in-out;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  margin: 0 auto;
}

.btn {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 300;
  padding: 14px 40px;
  min-width: 170px;
  border: none;
  border-radius: 30px;
  background: #a67a2e;
  -webkit-transition: all .2s ease-in-out;
  transition: all .2s ease-in-out;
  margin-top: 30px;
}
.btn:hover, .btn:focus, .btn:active {
  background: #7e5d23;
  border: none;
  outline: none;
}

.helper-text {
  font-size: 12px;
  font-weight: 300;
  margin-top: 20px;
  color: #9aa4ab;
}
JS
$(function() {
  $('.material-form .form-group .form-control').focusout(function() {
    var $text_val = $(this).val();
    if ($text_val === "") {
      $(this).removeClass('active');
    } else {
      $(this).addClass('active');
    }
  });
});
Host Instantly Drag and Drop Website Builder

 

Description

A simple login form UI using material design animations. Uses Bootstrap CSS
Term
Sun, 12/24/2017 - 17:50

Related Codes

Pen ID
Pen ID
Pen ID