-
Notifications
You must be signed in to change notification settings - Fork 0
/
contect-me.js
50 lines (42 loc) · 1.43 KB
/
contect-me.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
let linkedin=document.querySelector('.ri-linkedin-fill');
var link=document.querySelector('#link');
linkedin.addEventListener('mouseenter',function(){
link.style.color="blue";
});
linkedin.addEventListener('mouseleave',function(){
link.style.color="white";
});
let twitter=document.querySelector('.ri-twitter-line');
var twitk=document.querySelector('#twit');
twitter.addEventListener('mouseenter',function(){
twit.style.color="blue";
});
twitter.addEventListener('mouseleave',function(){
twit.style.color="white";
});
let instagram=document.querySelector('.ri-instagram-line');
var insta=document.querySelector('#insta');
instagram.addEventListener('mouseenter',function(){
insta.style.color="mediumvioletred";
});
instagram.addEventListener('mouseleave',function(){
insta.style.color="white";
});
let mail=document.querySelector('.mail');
let msgicon=document.querySelector('.ri-mail-fill');
mail.addEventListener('mouseenter',function(){
msgicon.style.color="crimson";
});
mail.addEventListener('mouseleave',function(){
msgicon.style.color="white";
});
let button=document.querySelector('button');
let btn=document.querySelector('#btn');
button.addEventListener('mouseenter',function(){
btn.style.backgroundColor="white"
btn.style.color="black"
});
button.addEventListener('mouseleave',function(){
btn.style.backgroundColor="darkred"
btn.style.color="white"
});