Skip to content

Commit de4796e

Browse files
committed
Merged dev into master
2 parents 7a19987 + c03a1ae commit de4796e

File tree

3 files changed

+70
-8
lines changed

3 files changed

+70
-8
lines changed

css/style.css

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,20 @@ h2{
7373
line-height: 22px;
7474
}
7575

76+
.step4{
77+
display: block;
78+
position: absolute;
79+
bottom: 110px;
80+
right: 0;
81+
left: 0;
82+
}
83+
84+
.step4 p{
85+
text-align: center;
86+
line-height: 22px;
87+
color: orangered;
88+
}
89+
7690
.madeWith{
7791
position: absolute;
7892
bottom: 60px;
@@ -467,7 +481,32 @@ img[alt="digitalocean"]{
467481
opacity: 0.0;
468482
}
469483

484+
.end{
485+
position: absolute;
486+
top: 150px;
487+
left: 0;
488+
right: 0;
489+
}
490+
491+
#imagesPar{
492+
position:relative;
493+
overflow:hidden;
494+
width:300px;
495+
height:300px;
496+
}
497+
498+
.parallax-layer
499+
{ position:absolute; }
470500

501+
502+
[data-info="theEnd"]{
503+
font-size: 120px;
504+
line-height: 90px;
505+
margin-top: -500px;
506+
}
507+
[data-info="theEnd"] small{
508+
font-size: 40px;
509+
}
471510
.typed-cursor{
472511
opacity: 1;
473512
-webkit-animation: blink 0.7s infinite;

index.html

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@
3434
rechts bovenin.
3535
</p>
3636
</div>
37+
<div class="step4">
38+
<p>
39+
Blijf naar rechts gaan voor de animaties!
40+
<br>
41+
--> --> --> --> --> --> --> --> --> --> --> -->
42+
43+
</p>
44+
</div>
3745
<h2 class="madeWith">Made With Love By Yannick</h2>
3846
</div>
3947
<div class="portfolio-item1">
@@ -57,19 +65,19 @@ <h2 data-info="timeSpent">Tijd per week buiten school:</h2>
5765
<div class="css-hours">
5866
<p data-info="css-hours">
5967
css:<br>
60-
<span class="hours-spent">~4 uur</span>
68+
<span class="hours-spent">~4 - 5 uur</span>
6169
</p>
6270
</div>
6371
<div class="html-hours">
6472
<p data-info="html-hours">
6573
html:<br>
66-
<span class="hours-spent">~3 uur</span>
74+
<span class="hours-spent">~2 - 3 uur</span>
6775
</p>
6876
</div>
6977
<div class="js-hours">
7078
<p data-info="js-hours">
7179
Javascript:<br>
72-
<span class="hours-spent">~5 uur</span>
80+
<span class="hours-spent">~5 - 15 uur</span>
7381
</p>
7482
</div>
7583
</div>
@@ -110,6 +118,9 @@ <h3 data-info="digitaloceanh3">server</h3>
110118
</div>
111119
</div>
112120
</div>
121+
<div class="end">
122+
<h2 data-info="theEnd">The End<br><small>have a nice day</small></h2>
123+
</div>
113124
</div>
114125
</div>
115126
<audio src="links/music/background.mp3" loop css="hidden" data-music="background"></audio>
@@ -144,10 +155,12 @@ <h3 data-info="digitaloceanh3">server</h3>
144155
let digitalOcean = $('img[alt="digitalocean"]'); // Logo digitalocean
145156
let digitalOceanh3 = $('h3[data-info="digitaloceanh3"]'); // h3 digitalocean
146157
let digitalOceanp = $('p[data-info="digitaloceanp"]'); // p digitalocean
158+
let endH2 = $('h2[data-info="theEnd"]'); // h2 of The End
147159
let maxHeight = false; // Variable used in scrip to prevent character from leaving the viewport
148160
let minHeight = false; // variable used to prevent character from going below the viewport
149161
let characterHeight = 300; // variable used to define character start position
150-
</script>
162+
let endRan = false //Variable to prevent spammy jquaryAnimation by keydown element
163+
</script>
151164
<script src="js/typed.js"></script>
152165
<script src="js/scrips.js"></script>
153166
</body>

js/scrips.js

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ function walk(e){ // Everything in this function is triggered when event keydown
1111
character.src = "links/character/moving@2x.png";
1212
character.style.transform = 'rotate(0deg)';
1313
scene.style.backgroundPosition = `${i}px`;
14-
i = i - 20;
14+
i = i - 23;
1515
} else if(e.keyCode === 37 && position <= -20) { // Code Om Naar Links Te Gaan
1616
character.src = "links/character/moving@2x.png";
1717
character.style.transform = 'rotate(180deg)';
1818
scene.style.backgroundPosition = `${i}px`;
19-
i = i + 20;
19+
i = i + 23;
2020
} else if(e.keyCode === 38 && characterHeight >= 591 && maxHeight === false){ // Code Die Kijkt of je Max height heb bereikt
2121
character.src = "links/character/moving@2x.png";
2222
character.style.transform = 'rotate(-90deg)';
@@ -70,8 +70,8 @@ if(position>= -1200 && position <= -760 && PoIt1Ran === true) { // Fade out port
7070
$('.portfolio-item1').stop().animate({width: '1200px', padding: '15px'}, 620);
7171
$(".introductieText").typed({
7272
strings: ["Hallo, Ik ben yannick!", "Ik Volg de opleiding Mediavormgeving in de richting interactief op het MediaCollege Amsterdam.", "Deze hele basis simpele 'game' is gemaakt met javascript met de Jquery library", "Je kan het process vinden op de github project pagina door op de knop rechts bovenin te drukken", "~Yannick Frisart MV2C", "────────────────────────────────────<br>──────────▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄──────────<br>────────▄▀▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▀▄────────<br>──────▐▌▒████▒▒▒▒▒▒▒▒████▒▒▐▌──────<br>──────▐▌▒▒████▒▒▒▒▒▒▒▒████▒▒▐▌──────<br>▐▌▀▄──▐▌▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▐▌──▄▀▐▌<br>▐▌▒▒▀▄▐▌▒▒▐▌▀▄▄▀▀▄▄▀▀▄▄▀▐▌▒▒▐▌▄▀▒▒▐▌<br>▐▌▒▒▒▒▐▌▒▒▐▌▒▒▒▒▒▒▒▒▒▒▒▒▐▌▒▒▐▌▒▒▒▒▐▌<br>──▀▄▒▒▐▌▒▒▐▌▒▒▒▒▒▒▒▒▒▒▒▒▐▌▒▒▐▌▒▒▄▀──<br>────▀▄▐▌▒▒▐▌▒▒▒▒▒▒▒▒▒▒▒▒▐▌▒▒▐▌▄▀────<br>──────▐▌▒▒▐▌▄▀▀▄▄▀▀▄▄▀▀▄▐▌▒▒▐▌──────<br>──────▐▌▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▐▌──────<br>──────▐▌▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▐▌──────<br>Yannick's Macbook Pro: yannick$ git push"],
73-
typeSpeed: 0,
74-
backDelay: 2200,
73+
typeSpeed: 30,
74+
backDelay: 300,
7575
contentType: 'html'
7676
});
7777
PoIt1Ran = true;
@@ -227,6 +227,16 @@ if(position >= -4760 && position <= -4600 && PoIt5Ran === true){ // fade out por
227227
PoIt6Ran = false;
228228
}
229229

230+
// -------------------------
231+
// End Code
232+
// -------------------------
233+
if(position >= - 6100 && endRan === true){
234+
endH2.stop().animate({'margin-top': '-500px'},500);
235+
endRan = false;
236+
} else if(position <= -6116 && endRan === false){
237+
endH2.stop().animate({'margin-top': '0px'},900);
238+
endRan = true;
239+
}
230240
// --------------------------
231241
// Background Music
232242
// --------------------------

0 commit comments

Comments
 (0)