LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code
CSS
@import url(https://fonts.googleapis.com/css?family=Josefin+Sans);
@keyframes loading {
  to {
    max-width: 100%;
  }
}
@keyframes animLogin {
  20% {
    transform: translateY(60px);
  }
  100% {
    transform: translateY(-1000px);
  }
}
@keyframes animRoot {
  100% {
    background-position: center -10px;
  }
}
@keyframes animRoot2 {
  from {
    height: 0px;
  }
  to {
    transform: translateY(100px);
    height: 1200px;
  }
}
@keyframes animClaim {
  from {
    opacity: 0;
  }
  100% {
    margin-top: 10%;
    opacity: 1;
  }
}
:root {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 100%;
  background: url("http://farm8.staticflickr.com/7342/9372014358_5bc95f5c4c_b.jpg") no-repeat center center fixed;
  background-size: cover;
}

::-webkit-input-placeholder {
  font-size: .7rem;
  color: white;
  text-shadow: -1px 1px 1px #000a57, -2px 1px 1px #000a57;
}

:-moz-placeholder {
  font-size: .7rem;
  color: white;
  text-shadow: -1px 1px 1px #000a57, -2px 1px 1px #000a57;
}

::-moz-placeholder {
  font-size: .7rem;
  color: white;
  text-shadow: -1px 1px 1px #000a57, -2px 1px 1px #000a57;
}

:-ms-input-placeholder {
  font-size: .7rem;
  color: white;
  text-shadow: -1px 1px 1px #000a57, -2px 1px 1px #000a57;
}

html {
  transition: transform 1s linear;
  overflow: hidden;
}
html.anim {
  animation: animRoot .2s 2s ease-in forwards;
}
html.anim .login {
  animation: animLogin 1s 2s forwards;
}
html.anim:after {
  display: inline-block;
  animation: animRoot2 1s 1.5s linear forwards;
}
html.anim:before {
  animation: animClaim 2s 2s forwards;
}
html.anim .content-after-anim {
  animation: animClaim .8s 4s forwards;
}
html:after {
  display: block;
  content: '';
  width: 100%;
  background: url("https://farm4.staticflickr.com/3854/15275282172_edc94e59c6_b.jpg") no-repeat center center fixed;
  background-size: cover;
  -webkit-filter: brightness(0.55);
  transform: translateY(1000px);
}
html:before {
  opacity: 0;
  display: block;
  content: 'Hi';
  color: white;
  font-size: 8em;
  text-indent: -130px;
  width: 100px;
  height: 100px;
  background: white;
  margin: 0 auto;
}

.login {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 300px;
  height: 220px;
  padding: 15px;
  margin: auto;
  background: rgba(0, 0, 0, 0.5);
}

.login-heading {
  font-size: 1.9rem;
  font-weight: 100;
  line-height: 3rem;
  color: white;
  text-shadow: -1px 1px 1px #000a57, -2px 1px 1px #000a57;
}
.login-heading [data-line] {
  display: inline-block;
  position: absolute;
  left: 0;
  bottom: 30px;
  right: 0;
  margin: auto;
  width: 85px;
  color: grey;
}
.login-heading [data-line]:before {
  display: none;
  content: attr(data-line);
  position: absolute;
  top: 0px;
  z-index: 10;
  max-width: 0;
  overflow: hidden;
  color: #b1e699;
  animation: loading .8s .4s forwards infinite;
}

.input-txt {
  box-sizing: border-box;
  padding: .8rem .9rem;
  width: 300px;
  margin-bottom: 1rem;
  border: 1px solid #797e73;
  box-shadow: inset 0px 1px 1px #000a57, inset 1px 0px 1px #000a57, inset -1px 0px 1px #000a57, inset 0px -1px 1px #000a57, 0px 1px 1px #000424, 1px 0px 1px black, -1px 0px 1px black, 0px -1px 1px black;
  background: rgba(20, 30, 100, 0.2);
  color: white;
}

:target [data-line]:before {
  display: inline-block;
}

:target .btn {
  opacity: .85;
  cursor: wait;
}

:target .btn span {
  transform: translate3d(0px, 30px, -280px) rotateX(90deg);
}

.btn {
  display: inline-block;
  width: 300px;
  height: 45px;
  vertical-align: top;
  perspective: 400px;
  perspective-origin: 50% 50%;
}
.btn span {
  position: relative;
  display: inline-block;
  box-sizing: border-box;
  padding: .8rem .9rem;
  width: 100%;
  height: 100%;
  box-shadow: inset 0px 1px 1px #a8f744, inset 1px 0px 1px #65d837, inset -1px 0px 1px #65d837, inset 0px -1px 1px #00b015, 0px 1px 1px #00010b, 1px 0px 1px #00073e, -1px 0px 1px #00073e, 0px -1px 1px #00073e;
  background-image: linear-gradient(#82d75c 0%, #73d247 50%, #63cd33 51%, #4fa528 100%);
  border: none;
  font-size: 1.2rem;
  text-shadow: -1px 1px 1px #000a57;
  text-align: center;
  text-decoration: none;
  color: white;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
  transition: all .4s ease-in-out;
}
.btn span:before {
  content: attr(data-proccess);
  position: absolute;
  left: 0;
  top: 0;
  box-sizing: border-box;
  display: inline-block;
  padding: inherit;
  width: inherit;
  height: inherit;
  background: #3b7c1e;
  border: inherit;
  box-shadow: inherit;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1em;
  text-shadow: none;
  transform-origin: 50% 0%;
  transform: translate3d(0px, 100%, 0px) rotateX(-90deg);
  transition: all .4s ease-in-out;
}

.content-after-anim {
  position: absolute;
  right: 1rem;
  top: 0%;
  opacity: 0;
}
.content-after-anim > a {
  color: white;
}
JS
/********
Better in Full page mode
------------------------

Some tecniques involved to experment a little bit about:

1) Absolute centering (https://cdpn.io/gEiDt)
2) Using :target to style
3) 3D rolling links, idea from http://hakim.se/thoughts/rolling-links 
4) Lea Verou loading text animation http://dabblet.com/gist/604677
5) Animations

*********/

$('.js-submit').on('click', function(){
   $('html').addClass('anim');
});
$('.js-reload').on('click', function(){
   $('html').removeClass('anim');
});
Host Instantly Drag and Drop Website Builder

 

Description

Login form to see how it works:
Term
Wed, 11/29/2017 - 11:22

Related Codes

Pen ID
Pen ID
Pen ID