-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
52 lines (39 loc) · 1.13 KB
/
script.js
File metadata and controls
52 lines (39 loc) · 1.13 KB
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
let skillsection = document.querySelector('.skills-section');
let boxes = document.querySelector('.boxes-bar2');
let x = true;
function moreski() {
if (x) {
skillsection.style.height = '140vh';
boxes.classList.add('show'); // show boxes
x = false;
} else {
skillsection.style.height = '105vh';
boxes.classList.remove('show'); // hide boxes
x = true;
}
}
let Achievmwntssection = document.querySelector('.Achievments');
let boxess = document.querySelector('.boxes-notvisi');
let y = true;
function moreach() {
if (y) {
Achievmwntssection.style.height = '200vh';
boxess.classList.add('show'); // show boxes
y = false;
} else {
Achievmwntssection.style.height = '140vh';
boxess.classList.remove('show'); // hide boxes
y = true;
}
}
const allBoxes = document.querySelectorAll('.bb');
allBoxes.forEach(item => {
const button = item.querySelector('.hoverBtn');
const box = item.querySelector('.box-in');
button.addEventListener('mouseenter', () => {
box.classList.add('glow');
});
button.addEventListener('mouseleave', () => {
box.classList.remove('glow');
});
});