18
18
< body >
19
19
<!-- navigation menu -->
20
20
<!-- hamburger menu -->
21
- < button type ="button " id ="hamburger " class ="hamburger hamburger--elastic ">
21
+ < button type ="button " name =" menu button " id ="hamburger " class ="hamburger hamburger--elastic ">
22
22
< span class ="hamburger-box ">
23
23
< span class ="hamburger-inner "> </ span >
24
24
</ span >
25
25
</ button >
26
26
27
27
<!-- menu with pure css ! -->
28
28
< div class ="menuToggle ">
29
- < ul class ="menu ">
30
- <!-- <a href="#"></a> -->
31
- Nothing happen here :(
32
- </ ul >
29
+ < div class ="menu ">
30
+ < h5 >
31
+ There is nothing here
32
+ </ h5 >
33
+ </ div >
33
34
</ div >
34
35
35
36
<!-- main -->
@@ -45,20 +46,19 @@ <h1 id="element"></h1>
45
46
<!-- social media -->
46
47
< div class ="social-media ">
47
48
< a href ="https://twitter.com/zaka_coding ">
48
- < i class ="fab fa-twitter "> </ i >
49
+ < i id =" twitter " class ="fab fa-twitter social-media-icon "> </ i >
49
50
</ a >
50
51
< a href ="https://instagram.com/youn8e_ ">
51
- < i class ="fab fa-instagram "> </ i >
52
+ < i id =" instagram " class ="fab fa-instagram social-media-icon "> </ i >
52
53
</ a >
53
54
< a href ="https://www.linkedin.com/in/zaka-n-693018111/ ">
54
- < i class ="fab fa-linkedin-in "> </ i >
55
+ < i id =" linkedin " class ="fab fa-linkedin-in social-media-icon "> </ i >
55
56
</ a >
56
57
</ div >
57
58
</ div >
58
59
<!-- Describe -->
59
60
< p >
60
- Copyright © 2021 All Right Reserved. Develop with ❤️ by Zaka.
61
- < br > < small > PHP | HTML5 | CSS3 | JavaScript | Full-Stack Developer</ small >
61
+ Copyright © 2021 - Develop with ❤️ by Zaka.
62
62
</ p >
63
63
</ footer >
64
64
</ body >
@@ -92,5 +92,45 @@ <h1 id="element"></h1>
92
92
// Toggle class "menu-active"
93
93
menu . classList . toggle ( "menu-active" ) ;
94
94
} ) ;
95
+
96
+ // social media icon hover
97
+ // animation when cursor hover
98
+ var twitter = document . getElementById ( "twitter" ) ;
99
+ var ig = document . getElementById ( "instagram" ) ;
100
+ var linkedin = document . getElementById ( "linkedin" ) ;
101
+ var socialMedia = document . querySelector ( ".social-media-icon" ) ;
102
+
103
+ twitter . addEventListener ( "mouseenter" , function ( ) {
104
+ ig . classList . add ( "icon-deactive" ) ;
105
+ linkedin . classList . add ( "icon-deactive" ) ;
106
+ } ) ;
107
+
108
+ twitter . addEventListener ( "mouseout" , function ( ) {
109
+ ig . classList . remove ( "icon-deactive" ) ;
110
+ linkedin . classList . remove ( "icon-deactive" ) ;
111
+ } ) ;
112
+
113
+ // Instagram
114
+ ig . addEventListener ( "mouseenter" , function ( ) {
115
+ twitter . classList . add ( "icon-deactive" ) ;
116
+ linkedin . classList . add ( "icon-deactive" ) ;
117
+ } ) ;
118
+
119
+ ig . addEventListener ( "mouseout" , function ( ) {
120
+ twitter . classList . remove ( "icon-deactive" ) ;
121
+ linkedin . classList . remove ( "icon-deactive" ) ;
122
+ } ) ;
123
+
124
+ // linkedin
125
+ linkedin . addEventListener ( "mouseenter" , function ( ) {
126
+ ig . classList . add ( "icon-deactive" ) ;
127
+ twitter . classList . add ( "icon-deactive" ) ;
128
+ } ) ;
129
+
130
+ linkedin . addEventListener ( "mouseout" , function ( ) {
131
+ ig . classList . remove ( "icon-deactive" ) ;
132
+ twitter . classList . remove ( "icon-deactive" ) ;
133
+ } ) ;
134
+
95
135
</ script >
96
136
</ html >
0 commit comments