|
/* |
|
Just a preloading animation, didn't saw many of them here on Codepen, so I said why not create one ? |
|
|
|
Used jQuery's window.load() function, in this demo there is also setTimeot(), cause there is no content to load, so we are simulating it. |
|
*/ |
|
@import url(https://fonts.googleapis.com/css?family=Oswald|Josefin+Sans:300); |
|
|
|
html { |
|
box-sizing: border-box; |
|
font-size: 100%; |
|
} |
|
*, *:before, *:after { |
|
box-sizing: inherit; |
|
} |
|
|
|
/* ==== Preloader styles ==== */ |
|
#hola{ |
|
width: 100vw; |
|
height: 100vh; |
|
background-color: #252328; |
|
position: fixed; |
|
z-index: 999; |
|
} |
|
#preloader { |
|
position:relative; |
|
width: 80px; |
|
height: 80px; |
|
top: 45%; |
|
margin: 0 auto; |
|
} |
|
#preloader span { |
|
position:absolute; |
|
border: 8px solid #ffe066; |
|
border-top: 8px solid transparent; |
|
border-radius:999px; |
|
} |
|
|
|
#preloader span:nth-child(1){ |
|
width:80px; |
|
height:80px; |
|
animation: spin-1 2s infinite linear; |
|
} |
|
#preloader span:nth-child(2){ |
|
top: 20px; |
|
left: 20px; |
|
width:40px; |
|
height:40px; |
|
animation: spin-2 1s infinite linear; |
|
} |
|
@keyframes spin-1 { |
|
0% {transform: rotate(360deg); opacity: 1;} |
|
50% {transform: rotate(180deg); opacity: 0.5;} |
|
100% {transform: rotate(0deg); opacity: 1;} |
|
} |
|
@keyframes spin-2 { |
|
0% {transform: rotate(0deg); opacity: 0.5;} |
|
50% {transform: rotate(180deg); opacity: 1;} |
|
100% {transform: rotate(360deg); opacity: 0.5;} |
|
} |
|
|
|
/* ==== Page layout ==== */ |
|
.page-wrap{ |
|
overflow-x: hidden; |
|
height: 100vh; |
|
} |
|
|
|
.home{ |
|
height: 100vh; |
|
position: relative; |
|
background-color: #F2F6F2; |
|
display: flex; |
|
justify-content: center; |
|
align-items: center; |
|
} |
|
.home:before{ |
|
position: absolute; |
|
width: 50%; |
|
height: 100%; |
|
z-index: 10; |
|
top: 0; |
|
left: 0; |
|
content: ''; |
|
background-color: #F2F6F2; |
|
} |
|
.home:after{ |
|
position: absolute; |
|
width: 50%; |
|
height: 100%; |
|
z-index: 10; |
|
top: 0; |
|
right: 0; |
|
content: ''; |
|
background-color: #F2F6F2; |
|
} |
|
.animate-border{ |
|
border: 40px solid #EDEBE6; |
|
transition: border .5s .2s ease; |
|
} |
|
.home.divide:before{ |
|
transition: all .6s 1.2s cubic-bezier(0.645, 0.045, 0.355, 1.000); |
|
width: 0; |
|
} |
|
.home.divide:after{ |
|
transition: all .6s 1.2s cubic-bezier(0.645, 0.045, 0.355, 1.000); |
|
width: 0; |
|
} |
|
.text-wrap{ |
|
width: 100%; |
|
max-width: 44rem; |
|
text-align: center; |
|
} |
|
h1{ |
|
font-size: 4rem; |
|
text-transform: uppercase; |
|
letter-spacing: 2px; |
|
font-weight: 700; |
|
font-family: 'Oswald'; |
|
color: #5F5264; |
|
margin-bottom: 3rem; |
|
} |
|
p{ |
|
font-size: 1rem; |
|
color: #b6ccb6; |
|
line-height: 1.4; |
|
font-family: 'Josefin Sans'; |
|
} |
|
|
|
@media screen and (max-width:1024px){ |
|
html{ |
|
font-size: 92.5%; |
|
} |
|
} |
|
@media screen and (max-width:640px){ |
|
html{ |
|
font-size: 86%; |
|
} |
|
p{ |
|
font-size: 1.1rem; |
|
} |
|
} |