A Landing Page of Coming Soon.
A Pen by François-Julien Alcaraz on CodePen.
<div class="main"> | |
<div id='content'> | |
<div class='title'> | |
<span>pooled</span> | |
</div> | |
<p>A HOLDING COMPANY</p> | |
<p>POOLED EURL - 69, Rue du rouet 13006 Marseille, France</p> | |
</div> | |
</div> |
A Landing Page of Coming Soon.
A Pen by François-Julien Alcaraz on CodePen.
function setHeights() { | |
var windowHeight = $(window).height(); | |
$('.slide').height(windowHeight); | |
} | |
setHeights(); | |
$(window).resize(function() { | |
setHeights(); | |
}); | |
function addSticky() { | |
$('.slide').each(function() { | |
var scrollerAnchor = $(this).offset().top; | |
if (window.scrollY >= scrollerAnchor) { | |
$(this).addClass('fix-it'); | |
} else { | |
$(this).removeClass('fix-it'); | |
} | |
}); | |
} | |
$(window).scroll(function() { | |
addSticky(); | |
}); |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> |
html { | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
box-sizing: border-box; | |
} | |
*, | |
*:before, | |
*:after { | |
-webkit-box-sizing: inherit; | |
-moz-box-sizing: inherit; | |
box-sizing: inherit; | |
} | |
@import url(https://fonts.googleapis.com/css?family=Khula:400,300,700); | |
html, | |
body { | |
width: 100%; | |
margin: 0 auto; | |
background-color: #FFFFFF; | |
font-family: "Khula", sans-serif; | |
overflow: hidden; | |
.main { | |
position: absolute; | |
width: 100%; | |
height: 100%; | |
top: 50%; | |
left: 50%; | |
margin: 0 auto; | |
transform: translate(-50%, -50%); | |
background: rgba(0, 0, 0, 0.5); | |
#content { | |
width: 100%; | |
max-width: 600px; | |
margin: 0 auto; | |
min-height: 24px; | |
height: 100%; | |
position: relative; | |
text-align: center; | |
top: 33%; | |
.title { | |
color: white; | |
font-family: "Khula", sans-serif; | |
font-size: 4rem; | |
padding-bottom: 0px; | |
margin-bottom: 0px; | |
span { | |
font-size: 4rem; | |
cursor: pointer; | |
} | |
&:hover { | |
-webkit-animation: MISSION-HOVER 1.5s infinite; | |
-moz-animation: MISSION-HOVER 1.5s infinite; | |
-o-animation: MISSION-HOVER 1.5s infinite; | |
animation: MISSION-HOVER 1.5s infinite; | |
animation-direction: alternate; | |
animation-timing-function: ease; | |
} | |
@-webkit-keyframes MISSION-HOVER { | |
0%, | |
100% { | |
font-size: 4rem; | |
color: white; | |
} | |
50% { | |
color: #bffcff; | |
letter-spacing: 5px; | |
text-shadow: 0px 0px 30px rgba(191, 252, 255, 1); | |
} | |
} | |
} | |
p { | |
color: #e6dbae; | |
font-family: "Khula", sans-serif; | |
font-size: 1.5rem; | |
margin: 0 auto; | |
padding: 0; | |
letter-spacing: 0.5rem; | |
text-transform: uppercase; | |
&:last-child { | |
font-size: 0.75rem; | |
font-weight: 700; | |
margin: 3em auto; | |
padding: 0; | |
letter-spacing: 0.1rem; | |
>a { | |
text-decoration: none; | |
color: inherit; | |
-moz-transition: all 0.2s ease-in; | |
-o-transition: all 0.2s ease-in; | |
-webkit-transition: all 0.2s ease-in; | |
transition: all 0.2s ease-in; | |
&:hover { | |
color: #fff; | |
} | |
} | |
} | |
} | |
} | |
} | |
} |