Skip to content

Commit 4dcdd8e

Browse files
committed
Bug Fixes And Added TypeWriter
- Added TypeWriter - Rewrote code to reduce lagg and glitchyness - Removed Obscele code - Added Animations for php and react
1 parent d1da23a commit 4dcdd8e

File tree

4 files changed

+78
-26
lines changed

4 files changed

+78
-26
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.DS_Store
22
.DS_Store?
33
*.wav
4-
*.mp3
4+
*.mp3
5+
typed.js

css/style.css

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

76+
.madeWith{
77+
position: absolute;
78+
bottom: 60px;
79+
width: 1400px;
80+
height: 45px;
81+
margin: 0px;
82+
font-size: 50px
83+
}
84+
7685
#music-switch{
7786
position: absolute;
7887
overflow: hidden;
@@ -111,8 +120,10 @@ h2{
111120
line-height: 30px;
112121
}
113122

114-
.portfolio-item1 p{
123+
.portfolio-item1 span{
115124
color:lime;
125+
font-size: 16px;
126+
font-family: 'Press Start 2P', cursive;
116127
}
117128

118129
.portfolio-item2{
@@ -153,6 +164,10 @@ h2{
153164
left: 0px;
154165
}
155166

167+
.portfolio-item3{
168+
z-index: 999;
169+
}
170+
156171
.wrapper{
157172
background: white;
158173
width: 1400px;
@@ -268,6 +283,7 @@ h2{
268283
position: absolute;
269284
top: 0px;
270285
left: 0px;
286+
z-index: 999;
271287
}
272288

273289
[data-info="frameworksAndLanguages"]{
@@ -321,6 +337,7 @@ h2{
321337
position: absolute;
322338
top: 0px;
323339
left: 0px;
340+
z-index: 999;
324341
}
325342

326343
[data-info="watIkWilLeren"]{
@@ -329,8 +346,8 @@ h2{
329346

330347
[data-info="react-l"]{
331348
position: absolute;
332-
bottom: 90px;
333-
right: 1400px;
349+
top: 700px;
350+
right: 50px;
334351
}
335352

336353
[data-info="node-l"]{
@@ -341,6 +358,28 @@ h2{
341358

342359
[data-info="php-l"]{
343360
position: absolute;
344-
bottom: 90px;
345-
right: 1400px;
346-
}
361+
top: -500px;
362+
left: 580px;
363+
}
364+
365+
.typed-cursor{
366+
opacity: 1;
367+
-webkit-animation: blink 0.7s infinite;
368+
-moz-animation: blink 0.7s infinite;
369+
animation: blink 0.7s infinite;
370+
}
371+
@keyframes blink{
372+
0% { opacity:1; }
373+
50% { opacity:0; }
374+
100% { opacity:1; }
375+
}
376+
@-webkit-keyframes blink{
377+
0% { opacity:1; }
378+
50% { opacity:0; }
379+
100% { opacity:1; }
380+
}
381+
@-moz-keyframes blink{
382+
0% { opacity:1; }
383+
50% { opacity:0; }
384+
100% { opacity:1; }
385+
}

index.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
<meta name="description" content="Jquery Animation">
99
<link rel="stylesheet" href="css/style.css" type="text/css">
1010
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
11-
<!-- <script src="//cdnjs.cloudflare.com/ajax/libs/velocity/1.4.0/velocity.min.js"></script>-->
1211
<link href="https://fonts.googleapis.com/css?family=Caveat:400,700%7CMarck+Script%7CPress+Start+2P" rel="stylesheet">
1312
<link href="https://fonts.googleapis.com/css?family=Bungee+Shade" rel="stylesheet">
1413
</head>
@@ -35,10 +34,16 @@
3534
rechts bovenin.
3635
</p>
3736
</div>
37+
<h2 class="madeWith">Made With Love By Yannick</h2>
3838
</div>
3939
<div class="portfolio-item1">
40-
<p>Hallo, Ik ben yannick!<br>Ik Volg de opleiding Mediavormgeving in de richting interactief op het MediaCollege Amsterdam.<br>Deze hele basis simpele game is gemaakt met javascript met de Jquary library<br>Je kan het process vinden op de github project pagina door op de knop rechts bovenin te drukken<br><br><br><br>
41-
~Yannick Frisart MV2C</p>
40+
<span class="introductieText"></span>
41+
42+
<!--
43+
Hallo, Ik ben yannick!<br>Ik Volg de opleiding Mediavormgeving in de richting interactief op het MediaCollege Amsterdam.<br>Deze hele basis simpele game is gemaakt met javascript met de Jquary library<br>Je kan het process vinden op de github project pagina door op de knop rechts bovenin te drukken<br><br>
44+
~Yannick Frisart MV2C<br>
45+
Yannick's Macbook Pro: yannick$ git push|
46+
-->
4247
</div>
4348
<div class="portfolio-item2">
4449
<h2 data-info="vaardigheden">Mijn Vaardigheden</h2>
@@ -118,6 +123,7 @@ <h2 data-info="watIkWilLeren">Wat ik wil leren in de toekomst:</h2>
118123
let minHeight = false;
119124
let characterHeight = 300;
120125
</script>
126+
<script src="js/typed.js"></script>
121127
<script src="js/scrips.js"></script>
122128
</body>
123129
</html>

js/scrips.js

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,13 @@ function walk(e){
99
if(e.keyCode === 39){ // Code Om naar Rechts te gaan
1010
character.src = "links/character/moving@2x.png";
1111
character.style.transform = 'rotate(0deg)';
12-
scene.style.backgroundPosition = `${backgroundForward}px`;
13-
i = i + 15;
14-
backgroundForward = i - (i * 2.1);
15-
backgroundBackward = backgroundForward;
12+
scene.style.backgroundPosition = `${i}px`;
13+
i = i - 20;
1614
} else if(e.keyCode === 37 && position <= -20) { // Code Om Naar Links Te Gaan
1715
character.src = "links/character/moving@2x.png";
1816
character.style.transform = 'rotate(180deg)';
19-
scene.style.backgroundPosition = `${backgroundBackward}px`;
20-
i = i - 15;
21-
backgroundBackward = i - (i * 2);
22-
backgroundForward = backgroundBackward;
17+
scene.style.backgroundPosition = `${i}px`;
18+
i = i + 20;
2319
} else if(e.keyCode === 38 && characterHeight >= 591 && maxHeight === false){ // Code Die Kijkt of je Max height heb bereikt
2420
character.src = "links/character/moving@2x.png";
2521
character.style.transform = 'rotate(-90deg)';
@@ -71,6 +67,12 @@ if(position>= -1200 && position <= -760 && PoIt1Ran === true) {
7167
PoIt1Ran = false;
7268
} else if(position <= -1214 && position >= -1400 && PoIt1Ran === false) {
7369
$('.portfolio-item1').stop().animate({width: '1200px', padding: '15px'}, 620);
70+
$(".introductieText").typed({
71+
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 Jquary 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"],
72+
typeSpeed: 0,
73+
backDelay: 2200,
74+
contentType: 'html'
75+
});
7476
PoIt1Ran = true;
7577
} else if(position <= -1650 && position >= -1700 && PoIt1Ran === true) {
7678
$('.portfolio-item1').stop().animate({width: '0px', padding: '0px'}, 320);
@@ -156,23 +158,27 @@ if(position >= -3934 && position <= -3820 && PoIt4Ran === true){
156158
// -------------------------
157159
if(position >= -4760 && position <= -4600 && PoIt5Ran === true){
158160
$('h2[data-info="watIkWilLeren"]').stop().animate({'margin-top': '-170px'},360);
159-
node.stop().animate({top: '700px'},300);
160-
php.stop().animate({right: '1400px'},300);
161-
react.stop().animate({right: '1400px'},300);
161+
node.stop().animate({top: '700px'},400);
162+
php.stop().animate({top: '-500px'},400);
163+
react.stop().animate({top: '700px'},400);
162164
PoIt5Ran = false;
163165
} else if(position <= -4775 && position >= -5100 && PoIt5Ran === false){
164166
$('h2[data-info="watIkWilLeren"]').stop().animate({'margin-top': '170px'},360);
165167
node.stop().animate({top: '-100px'},760);
166168
node.animate({top: '100px'},600);
167169
node.animate({top: '10px'},600);
168-
php.stop().animate({right: '30px'},360);
169-
react.stop().animate({right: '30px'},360);
170+
php.stop().animate({top: '200px'},760);
171+
php.animate({top: '-100px'},600);
172+
php.animate({top: '10px'},600);
173+
react.stop().animate({top: '-100px'},760);
174+
react.animate({top: '100px'},600);
175+
react.animate({top: '10px'},600);
170176
PoIt5Ran = true;
171177
} else if(position <= -5200 && position >= -5400 && PoIt5Ran === true){
172178
$('h2[data-info="watIkWilLeren"]').stop().animate({'margin-top': '-170px'},360);
173-
node.stop().animate({top: '700px'},300);
174-
php.stop().animate({right: '1400px'},300);
175-
react.stop().animate({right: '1400px'},300);
179+
node.stop().animate({top: '700px'},400);
180+
php.stop().animate({top: '-500px'},400);
181+
react.stop().animate({top: '700px'},400);
176182
PoIt5Ran = false;
177183
}
178184

0 commit comments

Comments
 (0)