testgrid
HTML
<body>
<div class="mask">
</div>
<div class="vertical vertical0">
<div class="horizontal horizontal000" style="background: url("//lorempixel.com/200/200/sports/0");"></div>
<div class="horizontal horizontal001" style="background: url("//lorempixel.com/200/200/nature/0");"></div>
<div class="horizontal horizontal002" style="background: url("//lorempixel.com/200/200/business/0");"></div>
<div class="horizontal horizontal003" style="background: url("//lorempixel.com/200/200/people/0");"></div>
<div class="horizontal horizontal004" style="background: url("//lorempixel.com/200/200/technics/0");"></div>
<div class="horizontal horizontal005" style="background: url("//lorempixel.com/200/200/people/0");"></div>
<div class="horizontal horizontal006" style="background: url("//lorempixel.com/200/200/fashion/0");"></div>
<div class="horizontal horizontal007" style="background: url("//lorempixel.com/200/200/city/0");"></div>
<div class="horizontal horizontal008" style="background: url("//lorempixel.com/200/200/animals/0");"></div>
<div class="horizontal horizontal010" style="background: url("//lorempixel.com/200/200/sports/1");"></div>
<div class="horizontal horizontal011" style="background: url("//lorempixel.com/200/200/nature/1");"></div>
<div class="horizontal horizontal012" style="background: url("//lorempixel.com/200/200/business/1");"></div>
<div class="horizontal horizontal013" style="background: url("//lorempixel.com/200/200/people/1");"></div>
<div class="horizontal horizontal014" style="background: url("//lorempixel.com/200/200/technics/1");"></div>
<div class="horizontal horizontal015" style="background: url("//lorempixel.com/200/200/people/1");"></div>
<div class="horizontal horizontal016" style="background: url("//lorempixel.com/200/200/fashion/1");"></div>
<div...
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);
...
JavaScript
$(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();
}
});