LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code

LOGIN

or
Don't have account? Create one
CSS
@import url(https://fonts.googleapis.com/css?family=Raleway:100,300);
@keyframes top {
  to {
    top: -20px;
  }
}
@keyframes sup-top {
  to {
    top: -40px;
  }
}
* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  height: 100%;
  background-image: linear-gradient(#7a9da9, #fff5ee);
  font-family: "Raleway", sans-serif;
  color: white;
}

.s-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  height: 500px;
  perspective: 1000px;
  margin: auto;
}

[data-status="open-"] .w {
  transform: rotateZ(0deg) rotateX(0deg) rotateY(0deg);
}
[data-status="open-"] .w:nth-child(1) {
  top: 0;
  transform: translateX(-250px);
  background-image: linear-gradient(rgba(255, 255, 255, 0.4) 90%, rgba(255, 255, 255, 0.1));
  animation-play-state: paused;
}
[data-status="open-"] .w:nth-child(2) {
  top: 0;
  transform: translateX(250px);
  animation-play-state: paused;
  box-shadow: 1px 1px 1px #fff;
}

[data-status="close"] .logo {
  opacity: 0;
}
[data-status="close"] .w__loading {
  transition: opacity 2s ease-in;
  opacity: 1;
}

.w {
  position: absolute;
  width: 245px;
  height: 523px;
  transition: transform .65s;
  float: left;
  transform: rotateZ(-45deg) rotateX(20deg) rotateY(30deg);
  transform-style: preserve-3d;
  transform-origin: left;
}
.w.-bottom {
  z-index: 1;
  box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.8);
}
.w.-top {
  top: 0;
  left: 0px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 10;
  box-shadow: -1px 1px 1px #fff;
  text-align: center;
  animation: top .8s linear .45s forwards;
}
.w.-sup-top {
  top: 0px;
  left: 0px;
  background-image: linear-gradient(-250deg, rgba(255, 255, 255, 0.4) 40%, rgba(255, 255, 255, 0.4) 41%, rgba(255, 255, 255, 0.2) 42%, rgba(255, 255, 255, 0.1));
  z-index: 100;
  box-shadow: -1px 1px 1px #fff;
  animation: sup-top .8s linear .4s forwards;
}

.w__loading {
  opacity: 0;
  font-size: 3em;
}

.widget {
  width: 100%;
  height: 100%;
  padding: 60px 10px 0px;
  background-image: linear-gradient(#0f3465, #2d82bc);
}
.widget > .logo {
  margin-bottom: 30px;
  font-size: 2em;
  text-align: center;
}

.w__field {
  width: 100%;
  padding: 5px;
  background: none;
  border: none;
  border-bottom: 1px solid #eee;
  color: white;
}

.w__row {
  margin-top: 20px;
}

.w__row--sepator {
  position: relative;
  text-align: center;
  font-size: .8em;
}
.w__row--sepator:before, .w__row--sepator:after {
  position: absolute;
  top: 8px;
  display: block;
  content: '';
  width: 45%;
  height: 1px;
  background: white;
}
.w__row--sepator:after {
  right: 0;
}

.w__row--bottom {
  position: absolute;
  bottom: 20px;
  font-size: .8em;
}

.w__btn {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid #eee;
  color: white;
  text-align: center;
  font-size: .9em;
  text-decoration: none;
}

.w__btn-1 {
  background: #2f6192;
}

.w__btn-2 {
  background: #1b5c94;
}

.w__row-link {
  color: white;
}
JS
#no form validation involved
#Inspired by:
#http://dribbble.com/shots/1445811-BNS-app-for-iPhone-Login-Screen/attachments/213451
#Other resource I don´t remember

$('.js-sign-in').on 'click', (e)->
  $('.s-wrap').attr('data-status','close')
Host Instantly Drag and Drop Website Builder

 

Term
Wed, 11/29/2017 - 11:22

Related Codes

Pen ID
Pen ID
Pen ID