1818< body >
1919 <!-- navigation menu -->
2020 <!-- 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 ">
2222 < span class ="hamburger-box ">
2323 < span class ="hamburger-inner "> </ span >
2424 </ span >
2525 </ button >
2626
2727 <!-- menu with pure css ! -->
2828 < 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 >
3334 </ div >
3435
3536 <!-- main -->
@@ -45,20 +46,19 @@ <h1 id="element"></h1>
4546 <!-- social media -->
4647 < div class ="social-media ">
4748 < 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 >
4950 </ a >
5051 < 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 >
5253 </ a >
5354 < 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 >
5556 </ a >
5657 </ div >
5758 </ div >
5859 <!-- Describe -->
5960 < 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.
6262 </ p >
6363 </ footer >
6464</ body >
@@ -92,5 +92,45 @@ <h1 id="element"></h1>
9292 // Toggle class "menu-active"
9393 menu . classList . toggle ( "menu-active" ) ;
9494 } ) ;
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+
95135</ script >
96136</ html >
0 commit comments