-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathabout.js
42 lines (36 loc) · 1.21 KB
/
about.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
let button=document.querySelector('.button');
let btn=document.querySelector('#btn');
button.addEventListener('mouseenter',function(){
btn.style.color="white";
btn.style.backgroundColor="red";
})
button.addEventListener('mouseleave',function(){
btn.style.backgroundColor="white";
});
let icon=document.querySelector('.ri-home-7-fill');
let home=document.querySelector('#home');
let body=document.querySelector('.body');
icon.addEventListener('mouseenter',function(){
home.style.color="white";
body.style.backgroundColor="rgb(255 0 0)";
});
icon.addEventListener('mouseleave',function(){
home.style.color="black";
body.style.backgroundColor="transparent";
});
let nav=document.querySelector('.nav-child-cildern1');
let h4=document.querySelector('#ch1');
nav.addEventListener('mouseenter',function(){
ch1.style.color="white";
})
nav.addEventListener('mouseleave',function(){
ch1.style.color="black";
})
let nav2=document.querySelector('.nav-child-cildern2');
let h42=document.querySelector('#ch2');
nav2.addEventListener('mouseenter',function(){
ch2.style.color="white";
})
nav2.addEventListener('mouseleave',function(){
ch2.style.color="black";
});