LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code
check

Based on a shot by Anton Aheichanka

CSS
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300,700);
html {
  font-size: 14px;
}

body {
  background-image: url("https://unsplash.it/1400/1500\a");
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  height: 100%;
  position: relative;
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
}

.wrapper {
  height: 100vh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.cell {
  max-width: 400px;
  height: 650px;
  margin: 0px auto;
  z-index: 4;
}

.panel-bg {
  background: -webkit-gradient(linear, left top, right top, from(rgba(79, 80, 97, 0.9)), to(rgba(79, 80, 97, 0.5)));
  background: linear-gradient(to right, rgba(79, 80, 97, 0.9), rgba(79, 80, 97, 0.5));
  background-blend-mode: overlay;
  position: absolute;
  height: 650px;
  width: 400px;
  opacity: 1;
  z-index: 1;
}

.panel {
  background-image: url("https://unsplash.it/1200/800\a");
  background-size: cover;
  position: relative;
  height: 650px;
  width: 400px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  overflow: hidden;
}

.container {
  z-index: 2;
  width: 100%;
  height: 100%;
}

.login-section {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  color: #FBF9F3;
  padding: 2rem;
  position: relative;
  margin-top: 60px;
}

.input-row {
  width: 100%;
  margin: 35px 0 15px 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.input-icon {
  padding-right: 15px;
  font-size: 1.5em;
  color: #FBF9F3;
  opacity: .3;
}

.input-field {
  outline: 0;
  border: 0;
  background: transparent;
  color: #FBF9F3;
  font-size: 1em;
  display: inline-block;
  width: 100%;
  letter-spacing: 1.5px;
}

.bbfog {
  border-bottom: 1px solid #E9E4DE;
  opacity: .2;
}

.mtl {
  margin-top: 60px;
}

.tcs {
  color: #ACACAC;
}

.tcsn {
  color: #FBF9F3;
}

::-webkit-input-placeholder {
  color: #FBF9F3;
}

:-ms-input-placeholder {
  color: #FBF9F3;
}

::-ms-input-placeholder {
  color: #FBF9F3;
}

::placeholder {
  color: #FBF9F3;
}

.login-subtext {
  max-width: 300px;
  margin: 0px auto;
  font-size: .85em;
  letter-spacing: 1.5px;
  position: relative;
  top: 150px;
  text-align: center;
}

.large-checkmark {
  color: #FBF9F3;
  font-size: 15em;
  display: block;
  text-align: center;
}

.profile-background {
  position: absolute;
  top: 225px;
  left: 50%;
  border-radius: 30px;
  outline: 0;
  border: 0;
  padding: 20px 10px;
  letter-spacing: 1.5px;
  background-color: #FF3366;
  cursor: pointer;
  z-index: 2;
  background-position: center center;
  background-size: cover;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  -webkit-transition: width .2s ease,  height .2s ease,  top .1s ease,  left .1s ease;
  transition: width .2s ease,  height .2s ease,  top .1s ease,  left .1s ease;
  width: 195px;
  height: 10px;
  text-align: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.profile-background:hover, .profile-background:active, .profile-background:focus {
  background-color: #FF3366;
}

.btn-text {
  margin: 0;
  color: #FBF9F3;
  font-weight: 300;
  text-transform: capitalize;
  letter-spacing: 1.5px;
  font-family: Open Sans;
}

.profile-bg-loading {
  width: 30px;
  height: 30px;
  padding: 15px;
  min-width: 30px;
  z-index: 3;
  -webkit-animation: loaderReady .3s forwards;
          animation: loaderReady .3s forwards;
  -webkit-animation-timing-function: cubic-bezier(0.21, 0.71, 0.85, 0.31);
          animation-timing-function: cubic-bezier(0.21, 0.71, 0.85, 0.31);
  -webkit-animation-delay: 1s;
          animation-delay: 1s;
}

@-webkit-keyframes loaderReady {
  0% {
    opacity: 1;
    border-radius: 50%;
  }
  50% {
    opacity: .9;
    border-radius: 50%;
  }
  75% {
    opacity: .7;
    border-radius: 50%;
  }
  100% {
    top: -200%;
    opacity: 0;
    height: 1000px;
    width: 1000px;
    border-radius: 50%;
    display: none;
  }
}

@keyframes loaderReady {
  0% {
    opacity: 1;
    border-radius: 50%;
  }
  50% {
    opacity: .9;
    border-radius: 50%;
  }
  75% {
    opacity: .7;
    border-radius: 50%;
  }
  100% {
    top: -200%;
    opacity: 0;
    height: 1000px;
    width: 1000px;
    border-radius: 50%;
    display: none;
  }
}
.mdl-spinner--single-color .mdl-spinner__layer-1, .mdl-spinner--single-color .mdl-spinner__layer-2, .mdl-spinner--single-color .mdl-spinner__layer-3, .mdl-spinner--single-color .mdl-spinner__layer-4 {
  border-color: #FBF9F3;
}

.mdl-spinner__circle {
  border-width: 2px;
}

.profile-loader {
  display: none;
}

.hide {
  display: none;
}

.show {
  display: block;
}

.shot {
  text-align: center;
  color: #FBF9F3;
}
JS
var $lbtn = $('.login-btn');
var $lbtext = $('.btn-text');
var $prbg = $('.profile-background');
var $pbload = $('.profile-bg-loading');
var $loader = $('.profile-loader');

$prbg.click(function() {
  $(this).toggleClass('profile-bg-loading');
  $lbtext.toggleClass('hide');
  $loader.toggleClass('show');
  $loader.toggleClass('is-active');
});
Host Instantly Drag and Drop Website Builder

 

Term
Tue, 12/26/2017 - 09:50

Related Codes

Pen ID
Pen ID
Pen ID