-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathscript.js
74 lines (61 loc) · 1.52 KB
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
const content = document.querySelector(".content");
let currentPos = window.pageYOffset;
function distort() {
const newPos = window.pageYOffset;
const diff = newPos - currentPos;
const speed = diff * 0.15;
content.style.transform = "skewY(" + speed + "deg)";
currentPos = newPos;
requestAnimationFrame(distort);
}
distort();
$(document).ready(() => {
$(".nav_icon").click(() => {
$(".nav_container").toggle();
});
$(".project-heading1").click(() => {
$(".project-info1").toggle();
$("#button1").click(() => {
$(".project-info1").toggle();
});
});
$(".project-heading2").click(() => {
$(".project-info2").toggle();
$("#button2").click(() => {
$(".project-info2").toggle();
});
});
$(".project-heading3").click(() => {
$(".project-info3").toggle();
$("#button3").click(() => {
$(".project-info3").toggle();
});
});
$(".project-heading4").click(() => {
$(".project-info4").toggle();
$("#button4").click(() => {
$(".project-info4").toggle();
});
});
$(".project-heading5").click(() => {
$(".project-info5").toggle();
$("#button5").click(() => {
$(".project-info5").toggle();
});
});
$("#button2").click(() => {
$(".project-info2").toggle();
});
$("#button3").click(() => {
$(".project-info3").toggle();
});
$("#button4").click(() => {
$(".project-info4").toggle();
});
$("#button5").click(() => {
$(".project-info5").toggle();
});
});
function func() {
alert("Not yet Finished");
}