-
Notifications
You must be signed in to change notification settings - Fork 1
/
script.js
37 lines (24 loc) · 774 Bytes
/
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
// For 1st IoS Button
var iosBtn = document.querySelector(".ios-btn");
iosBtn.addEventListener("click", animateBtn);
function animateBtn() {
iosBtn.classList.toggle("animation");
}
// For 1st Mac Button
var macBtn = document.querySelector(".mac-btn");
macBtn.addEventListener("click", animatedBtn2);
function animatedBtn2() {
macBtn.classList.toggle("animation");
}
// For 2nd IoS Button
var iosBtn2 = document.querySelector(".ios2-btn");
iosBtn2.addEventListener("click", animateBtn3);
function animateBtn3() {
iosBtn2.classList.toggle("animation");
}
// For 2nd Mac Button
var macBtn2 = document.querySelector(".mac2-btn");
macBtn2.addEventListener("click", animatedBtn4);
function animatedBtn4() {
macBtn2.classList.toggle("animation");
}