Added intro

This commit is contained in:
BenjaminToby 2021-06-05 16:11:16 +01:00
parent 5c855e092f
commit 5794177725
3 changed files with 74 additions and 20 deletions

View File

@ -21,3 +21,13 @@ window.addEventListener("scroll", () => {
watermark.style.transform = "translateY(" + (scroll * watermark.dataset.speed) + "px) translateX(-50%)"; watermark.style.transform = "translateY(" + (scroll * watermark.dataset.speed) + "px) translateX(-50%)";
}); });
//window.scrollBy({
// top: -100,
// behavior: "smooth"
//});
window.addEventListener("load", () => {
document.getElementById("skewed-bg").classList.add("skewed-bg");
document.getElementById("preloader").className = "preloader";
});

74
v2.css
View File

@ -42,11 +42,11 @@ header {
} }
header > a { header > a {
font-family: Impact; font-family: hennigar;
font-size: 24px; font-size: 24px;
text-transform: uppercase; text-transform: uppercase;
border: none; border: none;
letter-spacing: 0px; letter-spacing: 1px;
} }
nav { nav {
@ -105,13 +105,15 @@ a:hover {
} }
h1, h2, h3, h4 { h1, h2, h3, h4 {
font-family: Impact; font-family: hennigar;
margin-top: 0px; margin-top: 0px;
margin-bottom: 15px; margin-bottom: 15px;
width: 100%; width: 100%;
line-height: 1.2; line-height: 1.2;
color: inherit; color: inherit;
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 1px;
font-weight: normal;
} }
h1 { h1 {
@ -120,7 +122,7 @@ h1 {
} }
h2 { h2 {
font-size: 24px; font-size: 30px;
} }
h3 { h3 {
@ -192,6 +194,36 @@ input:focus {
/*................................................... General classes and IDs */ /*................................................... General classes and IDs */
.preloader-init {
position: fixed;
width: 100vw;
height: 100vh;
background-color: var(--main-color);
bottom: 0;
left: 0;
z-index: 2000;
}
.preloader {
position: fixed;
width: 100vw;
height: 100vh;
background-color: var(--main-color);
bottom: 0;
left: 0;
z-index: 2000;
animation: preloaderexit 1s;
animation-fill-mode: both;
animation-delay: 1s;
animation-timing-function: cubic-bezier( 0.215, 0.61, 0.355, 1 );
}
@keyframes preloaderexit {
0%{display: none; transform: none; opacity: 1; height: 100vh;}
99%{transform: skewY(-3deg); opacity: 1; height: 0px; bottom: -200px;}
100%{display: none; transform: skewY(-3deg); opacity: 0; height: 0px;}
}
.aside-header { .aside-header {
position: fixed; position: fixed;
top: 40px; top: 40px;
@ -227,21 +259,21 @@ input:focus {
} }
#benjamin-hero-text { #benjamin-hero-text {
font-family: Impact; font-family: hennigar;
font-size: 90px; font-size: 105px;
text-transform: uppercase; text-transform: uppercase;
letter-spacing: -2px; letter-spacing: 0px;
color: var(--main-color); color: var(--main-color);
} }
#toby-hero-text { #toby-hero-text {
font-family: Impact; font-family: hennigar;
font-size: 180px; font-size: 205px;
text-transform: uppercase; text-transform: uppercase;
letter-spacing: -4px; letter-spacing: 0px;
color: var(--main-color); color: var(--main-color);
line-height: 1; line-height: 1;
margin-top: -48px; margin-top: -63px;
} }
.hero-graphic-block { .hero-graphic-block {
@ -249,7 +281,7 @@ input:focus {
height: 300px; height: 300px;
background-color: var(--main-color); background-color: var(--main-color);
border-radius: 20px; border-radius: 20px;
margin-top: -30px; margin-top: -35px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@ -347,13 +379,14 @@ input:focus {
.hero-watermark { .hero-watermark {
position: absolute; position: absolute;
font-size: 30em; font-size: 35em;
font-family: Impact; font-family: hennigar;
z-index: -1; z-index: -1;
top: 20px; top: -20px;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
color: rgba(0,0,0,0.05) color: rgba(0,0,0,0.05);
letter-spacing: 2px;
} }
.below-fold { .below-fold {
@ -370,6 +403,15 @@ input:focus {
background-color: var(--main-color); background-color: var(--main-color);
top: -200px; top: -200px;
z-index: -1; z-index: -1;
animation: skewintro 1.2s;
animation-fill-mode: both;
animation-delay: 1s;
animation-timing-function: cubic-bezier( 0.39, 0.575, 0.565, 1 );
}
@keyframes skewintro {
0%{transform: none; top: 0;}
100%{transform: skewY(-3deg); top: -200px;}
} }
.container-darkbg { .container-darkbg {

10
v2.html
View File

@ -11,7 +11,7 @@
<meta name="description" content="Web/Graphic/Motion Designer, UI UX Designer, Frontend Web Developer"> <meta name="description" content="Web/Graphic/Motion Designer, UI UX Designer, Frontend Web Developer">
<link rel="shortcut icon" type="image/x-icon" href="/images-dw/favicon.ico"> <link rel="shortcut icon" type="image/x-icon" href="/images-dw/favicon.ico">
<link href="https://fonts.googleapis.com/css?family=Lato:400,500,700,800|Impact" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Lato:400,500,700,800|Impact" rel="stylesheet">
<link href="http://fonts.cdnfonts.com/css/impacted" rel="stylesheet"> <link href="http://fonts.cdnfonts.com/css/hennigar" rel="stylesheet">
<link rel="stylesheet" href="v2.css"> <link rel="stylesheet" href="v2.css">
@ -21,6 +21,8 @@
<body><!-- ...................................................................................................................... Body --> <body><!-- ...................................................................................................................... Body -->
<div class="preloader-init" id="preloader"></div>
<header> <header>
<a>Tben.Design</a> <a>Tben.Design</a>
<nav> <nav>
@ -38,7 +40,7 @@
<section style="z-index:1;"> <section style="z-index:1;">
<div> <div>
<div class="hero-graphic-wrapper translate" data-speed=".3"> <div class="hero-graphic-wrapper translate" data-speed=".25">
<div id="benjamin-hero-text">Benjamin</div> <div id="benjamin-hero-text">Benjamin</div>
<div id="toby-hero-text">Toby</div> <div id="toby-hero-text">Toby</div>
<div class="hero-graphic-block"> <div class="hero-graphic-block">
@ -46,7 +48,7 @@
</div> </div>
</div> </div>
<div class="hero-text-wrapper translate" data-speed=".2"> <div class="hero-text-wrapper translate" data-speed=".15">
<div class="hero-text-block"> <div class="hero-text-block">
Hi. I'm a Hi. I'm a
<h1> <h1>
@ -87,7 +89,7 @@
</div> </div>
<div></div> <div></div>
</div> </div>
<div class="skewed-bg"></div> <div id="skewed-bg"></div>
</section> </section>