body{
width:100%;
height: 500vh;
margin:0;
}
.black_half{
width: 0%;
height:100vh;
background-color: black;
background-size: 100% 100%;
animation: 0.5s lefter forwards;
position: fixed;
}
@keyframes lefter{
from{width: 0%;}
to{width: 24.9%;}
}
.white_rest{
width:75%;
height: 500vh;
float:right;
margin-left: 10vh;
background-color:white;
background-size: 100% 100%
}
.win1,.win3,.win5,.win7{
width:49.6%;
height:40vh;
border:black solid 0.1vh;
float:left;
margin-left: 0.1vh;
transition: width 1s,height 2s;
z-index: 1;
}
.win1:hover,.win3:hover,.win7:hover{
width:53%;
height: 45vh;
z-index: 100;
}
.win3,.win5,.win7{
border-top:none;
}
.win2,.win4,.win6,.win8{
float:right;
width:50%;
height:40vh;
border:black solid 0.1vh;
border-left: none;
margin-right: 0.1vh;
transition:width 1s,height:2s;
z-index: 2;
}
.win4,.win6,.win8{
border-top:none;
}
.foto{
width: 30vh;
height:auto;
animation:1s photos forwards;
left:6.5%;
position: absolute;
}
@keyframes photos{
0%,40%{opacity:0;filter:blur(3px); }
100%{opacity:1;filter:blur(0px);}
}
img{
width:40%;
height:auto;
position: absolute;
top:120vh;
left:7%;
border-radius:100%;
animation:1.5s photo forwards;
;
}
@keyframes photo{
0%,50%{filter: grayscale(100%);filter:brightnes(12%)}
100%{ filter: grayscale(10%);top:42vh}
}
.white_ha{
position:fixed;
top: 6vh;
left:3%;
width: 5%;
height:13vh;
text-align: center;
color:white;
line-height: 13vh;
font-size:3vw;
font-family: 'Roboto-Thin', sans-serif;
animation: ha 1s forwards;
}
@keyframes ha{
from{top:-10vh;opacity:0;}
to{top:2vh;opacity:1;}
}
.white_de{
position:fixed;
top: 5vh;
left :11.2%;
width: 5%;
height:13vh;
text-align: center;
color:white;
line-height: 13vh;
font-size: 3vw;
font-family: 'Roboto-Thin', sans-serif;
animation: q 1s forwards;
}
@keyframes q{
from{top:20vh;opacity:0;}
to{top:2vh;opacity:1;}
}
@font-face {
font-family: 'Roboto-Thin';
src: url('./Roboto-Thin.ttf');
}
.portfolio{
position:absolute;
top:11.8vh;
left:55.1%;
height: auto;
color: #00e6e6;
font-family: 'Roboto-Thin', sans-serif;
letter-spacing: 0.38vw;
font-size:1.2w;
font-weight: bolder;
width:50%; position:absolute;
animation: portfolio 1s forwards;
}
@keyframes portfolio{
from{left:-110%;}
to{left:15%;}
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>PORTFOLIO</title>
<link rel="stylesheet" href="index.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Archivo+Black" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Abel" rel="stylesheet">
<script type="text/javascript" src="index.js"></script>
</head>
<body>
<div class="black_half" >
<div class="white_ha">Hozer</div>
<div class="white_de">Dariusz</div>
</div>
<div class="white_rest">
<div class="win1"></div>
<div class="win2"></div>
<div class="win3"></div>
<div class="win4"></div>
<div class="win5"></div>
<div class="win6"></div>
<div class="win7"></div>
<div class="win8"></div>
</div>
</body>
</html>