LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

CSS
body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  font-family: 'Open Sans', sans-serif;
}
body #copy {
  position: absolute;
  bottom: 0;
  height: 40px;
  width: 100%;
  text-align: center;
  text-transform: uppercase;
  line-height: 14px;
  font-size: 10px;
  font-weight: 400;
  z-index: 10;
}
body #copy a {
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease-in-out 0s;
}
body #copy a b {
  font-weight: 700;
}
body #copy a:hover {
  color: #fff;
}
body .mask {
  position: absolute;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1;
  box-shadow: 0 0 500px #000 inset,0 0 300px #000 inset,0 0 200px #000 inset;
}
body .mask .modal {
  opacity: 0;
  width: 300px;
  height: 320px;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 5px;
  box-shadow: 0 0 10px #000000, 0 0 0 1px rgba(47, 47, 47, 0.5) inset;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
body .mask .modal .circle {
  background: #0d0d0d;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  position: relative;
  left: 50%;
  overflow: hidden;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px #0a0a0a,0 0 0 1px #0a0a0a;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover!important;
}
body .mask .modal .login h1 {
  margin: 0;
  padding: 0;
  margin-top: -30px;
  font-family: arial;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
  text-align: center;
}
body .mask .modal .login input {
  width: 260px;
  margin-left: 10px;
  margin-top: 15px;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  outline: none;
  padding: 10px;
  font-size: 13px;
  color: #fff;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  box-shadow: inset 0 -5px 45px rgba(100, 100, 100, 0.2), 0 1px 1px rgba(255, 255, 255, 0.2);
  -webkit-transition: box-shadow 0.5s ease;
  -moz-transition: box-shadow 0.5s ease;
  -o-transition: box-shadow 0.5s ease;
  -ms-transition: box-shadow 0.5s ease;
  transition: box-shadow 0.5s ease;
}
body .mask .modal .login input:focus {
  box-shadow: inset 0 -5px 45px rgba(100, 100, 100, 0.4), 0 1px 1px rgba(255, 255, 255, 0.2);
}
body .mask .modal .login button {
  background: transparent;
  text-align: center;
  border: solid 2px #fff;
  margin: 25px 15px 0;
  width: 275px;
  color: #fff;
  line-height: 25px;
  border-radius: 20px 20px 20px 20px;
}
body .vertical {
  float: left;
  width: 10%;
  overflow: hidden;
}
body .vertical .horizontal {
  width: 100%;
  height: 150px;
  position: relative;
  box-shadow: -1px 1px 0 1px #000000 inset, 0 0 50px rgba(0, 0, 0, 0.5) inset;
  overflow: hidden;
  text-align: center;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover!important;
}
JS
/* 
* Hi and Welcome to Codepen!
*
* My name is Ignacio and I am looking for a Dribble invitation.
* Please contact me via twitter if you have 1, 
* I would like to have 1 hehe :)
* 
* I will keep publishing examples to help push the web foward.
* PLEASE Like, Heart or Share if you like, and don't forget to follow. 
* Thanks.
*
* Now let's animate it :)
*/

$(document).ready(function(){
  var  $v01  = $('.vertical0')
  		,$v02  = $('.vertical1')
  		,$v03  = $('.vertical2')
  		,$v04  = $('.vertical3')
  		,$v05  = $('.vertical4')
      ,$v06  = $('.vertical5')
      ,$v07  = $('.vertical6')
      ,$v08  = $('.vertical7')
      ,$v09  = $('.vertical8')
      ,$v10  = $('.vertical9')
  		,$login= $('.modal')
  		,speed = 60
  		,tl = new TimelineLite({onComplete:restart});
  
  		tl.fromTo($v01,speed*0.70,{y:-250} ,{y:-750} ,'sync')
  			.fromTo($v02,speed*0.75,{y:-950} ,{y:-1250},'sync')
  			.fromTo($v03,speed*0.95,{y:-1000},{y:-1850},'sync')
  			.fromTo($v04,speed*0.75,{y:-1250},{y:-1750},'sync')
  			.fromTo($v05,speed*0.85,{y:-1100},{y:-2000},'sync')
      	.fromTo($v06,speed*0.65,{y:-900},{y:-1950},'sync')
      	.fromTo($v07,speed*0.70,{y:-1300},{y:-2100},'sync')
      	.fromTo($v08,speed*0.95,{y:-850},{y:-1460},'sync')
        .fromTo($v09,speed*0.55,{y:-1000},{y:-1750},'sync')
        .fromTo($v10,speed*0.80,{y:-1200},{y:-1600},'sync')
  			.fromTo($login,1,{scale:0,autoAlpha:0},{scale:1,autoAlpha:1, ease:Elastic.easeInOut},'sync');
  		
  		tl.play();
  
      function restart(){
        tl.stop();
        tl.restart();
      }
});

Description

This is a simple form with an awesome block animation in the background. Of course we need GASP to make it smoothly.
Term
Mon, 11/27/2017 - 21:28

Related Codes

Pen ID
Pen ID
Pen ID
Square Adv