-
Notifications
You must be signed in to change notification settings - Fork 0
/
js.js
26 lines (20 loc) · 869 Bytes
/
js.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
function transform() {
var een = document.getElementById("hamburger1");
een.classList.toggle("menu1Transform");
var twee = document.getElementById("hamburger2"); twee.classList.toggle("menu2Transform");
var label = document.getElementById("label");
label.classList.toggle("displayNone");
}
var menu = document.getElementById("menu");
menu.addEventListener("click", transform);
function rotate() {
var streep = document.getElementById("streep1");
streep.classList.toggle("rotate");
var streepTwee = document.getElementById("streep2"); streepTwee.classList.toggle("rotate");
var menuItem = document.getElementById("menu1");
menuItem.classList.toggle("scale");
var menuItemTwee = document.getElementById("menu2");
menuItemTwee.classList.toggle("scale");
}
var knop = document.getElementById("knop");
knop.addEventListener("click", rotate);